使用ATC命令转换模型, 8.0RC2alpha1能够成功转换, 但是8.0RC2alpha3失败
收藏回复举报
使用ATC命令转换模型, 8.0RC2alpha1能够成功转换, 但是8.0RC2alpha3失败
t('forum.solved') 已解决
发表于2024-07-05 21:18:17
0 查看

我使用mmdeploy将模型转换为了ONNX格式并使用ATC进行模型转换, 在使用版本为8.0RC2alpha1的CANN时转换成功生成了om文件, 但是当我升级到alpha3版本时转换失败, 使用的是完全相同的转换命令, 日志如下

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.637 [constant_clip_pass.cc:80]500603 Run: ErrorNo: 4294967295(failed) [COMP][PRE_OPT]Assert (!weight_inputs.empty()) failed 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.671 [base_pass.cc:567]500603 RunPassesOnNode: ErrorNo: 1343225860(Internal errors) [COMP][PRE_OPT][Process][Pass] ConstantClipPass on node /Cast_4 failed, result 1343225857, the passes will be terminated immediately. 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.679 [base_pass.cc:515]500603 RunPassesNodeOnce: ErrorNo: 1343225857(Parameter invalid!) [COMP][PRE_OPT][Process][Passes] on node /Cast_4 type Cast failed, error code:1343225857 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.685 [base_pass.cc:471]500603 RunPassesGraphRepass: ErrorNo: 1343225857(Parameter invalid!) [COMP][PRE_OPT][Process][Passes] on node /Cast_4 type Cast failed, error code:1343225857 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.923 [graph_prepare.cc:2321]500603 InferShapeForPreprocess: ErrorNo: 1343225857(Parameter invalid!) [COMP][PRE_OPT][Run][GePasses] infershape for preprocess failed, ret:1343225857. 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.948 [graph_prepare.cc:1763]500603 FormatAndShapeProcess: ErrorNo: 1343242270(Prepare Graph infershape failed) [COMP][PRE_OPT][Call][InferShapeForPreprocess] Prepare Graph infershape failed 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.959 [graph_prepare.cc:2002]500603 PrepareDynShape: ErrorNo: 1343242270(Prepare Graph infershape failed) [COMP][PRE_OPT][Process][Prepare_FormatAndShapeProcess] failed 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.970 [graph_manager.cc:1073]500603 PreRunOptimizeOriginalGraph: ErrorNo: 1343242270(Prepare Graph infershape failed) [COMP][PRE_OPT][Process][GraphManager_stages.preparer.PrepareDynShape] failed 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.976 [graph_manager.cc:3856]500603 OptimizeGraph: ErrorNo: 1343242270(Prepare Graph infershape failed) [COMP][PRE_OPT][Run][PreRunOptimizeOriginalGraph] failed for graph:end2end, session_id:0 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.411.983 [pne_model_builder.cc:118]500603 OptimizeGraph: ErrorNo: 4294967295(failed) [COMP][PRE_OPT][Optimize][Graph] failed, graph = end2end, engine = NPU 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.412.156 [graph_manager.cc:1276]500603 PreRun: ErrorNo: 4294967295(failed) [COMP][PRE_OPT][Build][Model] failed, session_id:0, graph_id:0. 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.412.385 [graph_manager.cc:1319]500603 StartForRunGraph: ErrorNo: 1343242270(Prepare Graph infershape failed) [COMP][PRE_OPT][Call][PreRun] Failed, graph_id:0, session_id:0. 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.412.392 [graph_manager.cc:1769]500603 BuildGraph: ErrorNo: 1343242270(Prepare Graph infershape failed) [COMP][PRE_OPT][Call][StartForRunGraph] failed! graph_id:0. 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.412.432 [ge_generator.cc:1609]500603 BuildModelWithGraphId: ErrorNo: 1343266819(Graph manager build graph failed.) [COMP][DEFAULT][Build][Graph] fail, graph id: 0 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.412.447 [ge_generator.cc:658]500603 GenerateModel: ErrorNo: 1343242270(Prepare Graph infershape failed) [COMP][DEFAULT][Build][Model] failed, ret:1343242270. 

[ERROR] GE(500603,atc.bin):2024-07-05-13:14:25.415.889 [main_impl.cc:1507]500603 GenerateModelBySingleGraph: ErrorNo: 4294967295(failed) [COMP][DEFAULT]GE GenerateOfflineModel execute failed

我要发帖子