GPU一直显示各种内存溢出
Created by: shanzhengliu
代码是cycleGan的内容,报错内容是 Out of memory error on GPU 0. Cannot allocate 80.000244MB memory on GPU 0, available memory is only 76.089062MB.
Please check whether there is any other process using GPU 0.
- If yes, please stop them, or start PaddlePaddle on another GPU.
- If no, please try one of the following suggestions:
- Decrease the batch size of your model.
- FLAGS_fraction_of_gpu_memory_to_use is 0.50 now, please set it to a higher value but less than 1.0.
The command is
export FLAGS_fraction_of_gpu_memory_to_use=xxx
.
使用源码而且尝试了网上所说的 os.environ["FLAGS_fraction_of_gpu_memory_to_use"]="0.7"也无法解决,求助