显存不够----ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[4096

Posted leoking01

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了显存不够----ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[4096相关的知识,希望对你有一定的参考价值。

ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[4096]

 

类似问题 https://github.com/CharlesShang/TFFRCNN/issues/68

参考:

 http://blog.csdn.net/qing101hua/article/details/77153222

方案:

 

take a look at the memory usage of your gpu with

nvidia-smi -l 3

  

if still free memory that can be used
-> edit lib/fast_rcnn/train.py
~line396 : config.gpu_options.per_process_gpu_memory_fraction = 0.40
edit 0.40 to larger propotion (e.g. 0.9)

以上是关于显存不够----ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[4096的主要内容,如果未能解决你的问题,请参考以下文章

显存不够----ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[4096

跑yolo3需要多少显存

在 Tensorflow 中运行 LSTM 时出现 ResourceExhausted 错误或 OOM

google.api_core.exceptions.ResourceExhausted: 429 查询 bigquery 时收到的消息大于最大值

显存的反应时间(多少ns)怎么看?怎么计算?

关于tensorflow的显存占用问题