fix for tf-directml

This commit is contained in:
iperov 2022-05-04 16:41:17 +04:00
parent b9e571d7e1
commit 0d19d8ec8e

View File

@ -161,6 +161,7 @@ class Devices(object):
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