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 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?