Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 0d19d8e

Browse files
committed
fix for tf-directml
1 parent b9e571d commit 0d19d8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/leras/device.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def initialize_main_env():
161161
if 'CUDA_VISIBLE_DEVICES' in os.environ.keys():
162162
os.environ.pop('CUDA_VISIBLE_DEVICES')
163163

164+
os.environ['TF_DIRECTML_KERNEL_CACHE_SIZE'] = '2500'
164165
os.environ['CUDA_​CACHE_​MAXSIZE'] = '2147483647'
165166
os.environ['TF_MIN_GPU_MULTIPROCESSOR_COUNT'] = '2'
166167
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # tf log errors only

0 commit comments

Comments
 (0)