原文:tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[1,1424,2128,64]

tensorflow.python.framework.errors impl.ResourceExhaustedError: OOM when allocating tensor with shape , , , 开始以为是是显卡显存不足,没有想到是gpu问题 ref: https: www.cnblogs.com heiao duan p .html Dense ,activation re ...

2020-12-10 00:05 0 1055 推荐指数:

查看详情

''tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[?]'' 错误分析

这是tensorflow 一个经常性错误,错误的原因在于:显卡内存不够。 解决方法就是降低显卡的使用内存,途径有以下几种措施: 1 减少Batch 的大小 2 分析错误的位置,在哪一层出现显卡不够,比如在全连接层出现的,则降低全连接层的维度,把2048改成1042啥的 3 增加pool 层 ...

Fri Jun 22 04:34:00 CST 2018 0 4872
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM