January 2018
Intermediate to advanced
474 pages
10h 23m
English
When you start running the TensorFlow session, by default it grabs all of the GPU memory, even if you place the operations and variables only on one GPU in a multi-GPU system. If you try to run another session at the same time, you will get out of memory error. This can be solved in multiple ways:
os.environ['CUDA_VISIBLE_DEVICES']='0'
The code executed after this setting will be able to grab all of the memory of only the visible GPU.
config.gpu_options.per_process_gpu_memory_fraction ...
Read now
Unlock full access