原文: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