C医生 2019-03-29 09:06 采纳率: 0%
浏览 652
已采纳

MemoryError: failed to alloc mrg_uniform output——内存相关的报错?

做一个图像2分类的模型,报错提示如下:怎么改代码?
MemoryError: failed to alloc mrg_uniform output
Apply node that caused the error: mrg_uniform{TensorType(float32, matrix),inplace}(, TensorConstant{[774400 128]})
Toposort index: 0
Inputs types: [TensorType(int32, matrix), TensorType(int32, vector)]
Inputs shapes: [(15360, 6), (2,)]
Inputs strides: [(24, 4), (4,)]
Inputs values: ['not shown', array([774400, 128])]
Outputs clients: [['output'], [Elemwise{Composite{(i0 + (i1 * i2))}}(0, 2) of ...002783281}, TensorConstant{(1, 1) of ...005566562}, mrg_uniform{TensorType(float32, matrix),inplace}.1)]]

HINT: Re-running with most Theano optimization disabled could give you a back-trace of when this node was created. This can be done with by setting the Theano flag 'optimizer=fast_compile'. If that does not work, Theano optimizations can be disabled with 'optimizer=None'.
HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.

  • 写回答

1条回答 默认 最新

  • C医生 2019-05-03 06:07
    关注

    没有人知道这个问题的答案吗

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services