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 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵