Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
fix for tf-directml
Browse files Browse the repository at this point in the history
  • Loading branch information
iperov committed May 4, 2022
1 parent b9e571d commit 0d19d8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/leras/device.py
Expand Up @@ -161,6 +161,7 @@ def initialize_main_env():
if 'CUDA_VISIBLE_DEVICES' in os.environ.keys():
os.environ.pop('CUDA_VISIBLE_DEVICES')

os.environ['TF_DIRECTML_KERNEL_CACHE_SIZE'] = '2500'
os.environ['CUDA_​CACHE_​MAXSIZE'] = '2147483647'
os.environ['TF_MIN_GPU_MULTIPROCESSOR_COUNT'] = '2'
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # tf log errors only
Expand Down

0 comments on commit 0d19d8e

Please sign in to comment.