tensorflow錯誤:“tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[32,256,55,55]”
解決方法:
- 減少批處理Batch 的大小
- 降低全連接層的維度
- 增加池化 層
- 縮小輸入圖片大小
總之呢,就是顯卡內存不能滿足此次訓練,所以就是要降低所需內存要求。
tensorflow錯誤:“tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[32,256,55,55]”
解決方法:
總之呢,就是顯卡內存不能滿足此次訓練,所以就是要降低所需內存要求。
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta