Allocator (GPU_0_bfc) ran out of memory trying to allocate 128.00MiB

各位大佬,我在训练一个模型,基于Keras,用的是5折交叉验证,然后前3折都没问题,但是在进行第4折时就会提示Allocator (GPU_0_bfc) ran out of memory trying to allocate 128.00MiB.这应该是gpu内存不足了吧。也试过在每折验证前加 K.clear_session() tf.reset_default_graph(),但是程序就报错了: alueError: Tensor(“conv3d_1_1/concat:0”, shape=(?, 256, 256, 8, 1), dtype=float32, device=/device:CPU:0) must be from the same graph as Tensor(“loss/conv3d_1_loss/ones:0”, shape=(?, ?, ?, ?, ?), dtype=float32),请问这到底是是啥原因呀?

网络比较复杂,batch size比较小,然后输入2562568,6块 TITAN Xp 12G,求助~~~

-------------------------------------分割线-------------------------------
问题已经得到解决,哈哈,牵扯到一个模型的load和save问题。。。噗

评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值