×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

【模型转换】模型转换失败,提示 ReduceOp 索引数据类型不匹配 咕咕雪2025-12-01 15:20:40 回复 1 查看 技术答疑 使用求助
【模型转换】模型转换失败,提示 ReduceOp 索引数据类型不匹配
分享到:

 【寒武纪硬件产品型号】:如MLU370-X4;

 【使用操作系统】:ubuntu

 【使用驱动版本】:v5.10.22

 【使用AI框架】:Pytorch

 【出错信息】:

2025-12-01 06:31:00.896761: ERROR:  magicmind/cc/implement/processor.cc:225] Failed to run pass pipeline: CNNLLegalizeMMPass: 'cnnl.reduce' op ReduceOp: reduce_max expected indices data type to be int32 or uint32.Failures have been detected while processing an MLIR pass pipelinefunc.func
# 转换模型脚本
./onnx_build 
--onnx modelx.onnx 
--magicmind_model modelx.mm 
--input_dims 1,1,320,480 1,1,320,480 
--dynamic_shape false


版权所有 © 2025 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭