Resource exhausted: OOM when allocating tensor with shape[3,3,384,384] and type float on /job:localh

Posted 在下小白

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Resource exhausted: OOM when allocating tensor with shape[3,3,384,384] and type float on /job:localh相关的知识,希望对你有一定的参考价值。

报错信息:

 OP_REQUIRES failed at assign_op.h:111 : Resource exhausted: OOM when allocating tensor with shape[3,3,384,384] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc

大概意思是资源耗尽,无法在分配tensor了。

因为我之前有跑其他程序,然后使用ctrl+z中断的,估计进程没有直接杀死,还在后台运行。

使用$ nvidia-smi查看内存使用情况,果然快满了。

 

 

以上是关于Resource exhausted: OOM when allocating tensor with shape[3,3,384,384] and type float on /job:localh的主要内容,如果未能解决你的问题,请参考以下文章