By default, TensorFlow pre-allocate the whole memory of the GPU card (which can causes CUDA_OUT_OF_MEMORY warning).
To change this, it is possible to
change the percentage of memory pre-allocated, using per_process_gpu_memory_fraction config option,
A value between 0 and 1 that indicates wh...