fix for colab

This commit is contained in:
iperov 2021-04-22 21:12:42 +04:00
parent 78f12de819
commit 23130cd56a

View file

@ -92,6 +92,7 @@ class Devices(object):
@staticmethod
def _get_tf_devices_proc(q : multiprocessing.Queue):
if sys.platform[0:3] == 'win':
compute_cache_path = Path(os.environ['APPDATA']) / 'NVIDIA' / ('ComputeCache_ALL')
os.environ['CUDA_CACHE_PATH'] = str(compute_cache_path)
if not compute_cache_path.exists():