# 使用MindSpore Lite端侧模型转换工具将YOLOv8.onnx转为.ms报错Convert failed. Ret: Common error code.

**1. 系统环境**

硬件环境\(Ascend/GPU/CPU\): Ascend

软件环境: MindSpore 版本: 2.2.10

执行模式（静态图/动态图）： 不限

Python 版本: 3.8

操作系统平台: linux

**2. 报错信息**

2.1 问题描述

YOLOv8训练的模型.onnx，使用MindSpore Lite端侧离线模型转换工具转为.ms报错失败。

2.2 报错信息

```
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0905 15:58:04.880090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op MeanExt
I0905 15:58:04.880090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Mul
I0905 15:58:04.880090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Neg
I0905 15:58:04.880090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op NonZero
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op NonZeroExt
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op OneHotExt
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Ones
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op OnesLikeExt
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op ProdExt
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op ReduceAll
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op ReLU
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op RepeatInterleaveGrad
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op RepeatInterleaveInt
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op RepeatInterleaveTensor
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op ReverseV2
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Rsqrt
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Sin
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Softmax
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op SoftplusExt
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op SortExt
I0905 15:58:04.881093 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Sqrt
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op StackExt
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op SumExt
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Tanh
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op TanhGrad
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op TopkExt
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op UniformExt
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Unique2
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op UniqueDim
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Zeros
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op ZerosLikeExt
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op ArgMaxWithValue
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Atan2Ext
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op BatchMatMul
I0905 15:58:04.882090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op BatchNormExt
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op BinaryCrossEntropy
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op BinaryCrossEntropyGrad
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op BCEWithLogitsLoss
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op BinaryCrossEntropyWithLogitsBackward
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op BatchMatMulExt
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Cast
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Ceil
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op ClampScalar
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op ClampTensor
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Cos
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Dense
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Div
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op DivMod
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op EluExt
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op EluGradExt
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Erf
I0905 15:58:04.883090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Erfinv
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Eye
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op FlattenExt
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Floor
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op GeLU
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Generator
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Greater
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op GreaterEqual
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op GroupNorm
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Im2ColExt
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Col2ImGrad
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Col2ImExt
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op IsFinite
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op LayerNormExt
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op LeakyReLUExt
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op LeakyReLUGradExt
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Less
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op LessEqual
I0905 15:58:04.884090 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Log
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op LogicalAnd
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op LogicalNot
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op LogicalOr
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op MatMul
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op MatMulExt
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op MatrixInverseExt
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Max
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Min
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Addmm
I0905 15:58:04.885092 95696 :0] [DEBUG] CORE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\merge\mindspore\core\ops_merge_4.cc:7703] Register] Reg simple infer for op Arange
[WARNING] LITE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\tools\converter\parser\onnx\onnx_op_parser.cc:5856] CheckOnnxModel] Cannot find input:  of node: /model.10/Resize
[WARNING] LITE(95768,1,?):2024-9-5 15:58:4 [build\mindspore\tools\converter\parser\onnx\onnx_op_parser.cc:5856] CheckOnnxModel] Cannot find input:  of node: /model.13/Resize
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore/lite/tools/optimizer/const_fold/constant_folding_fusion.h:48] Run] Do constant fold failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\node_infershape.cc:294] InferShapeByNNACL] InferShapeByNNACL for op: /model.22/dfl/conv/Conv failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:314] InferProcess] node infer shape failed, node is /model.22/dfl/conv/Conv
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\optimizer\graph\infershape_pass.cc:189] Run] infer shape failed.
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\src\litert\infer_manager.cc:153] CheckInfershapeResult] Unexpected input format 0
[WARNING] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\legacy_optimizer\graph\infershape_pass.cc:629] InferSubgraph] InferShape failed, name: /model.22/dfl/conv/Conv, type: Conv2DFusion
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\legacy_optimizer\graph\infershape_pass.cc:646] Run] InferSubgraph index: 0 failed, ret: -500
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\optimizer.cc:78] Run] Run GraphPass failed
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\graphdef_transform.cc:71] QuantTransform] Run quant_node_optimizer graphPasses Failed
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\converter_metagraph.cc:102] Build] Transform meta graph failed -500
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\converter.cc:1243] SaveGraph] Convert to meta graph failed
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\converter.cc:1196] HandleGraphCommon] Save graph failed: -1 Common error code.
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\converter.cc:1136] Convert] Handle graph failed: -1 Common error code.
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\converter.cc:1328] RunConverter] Convert model failed
[ERROR] LITE(95768,1,?):2024-9-5 15:58:5 [mindspore\lite\tools\converter\cxx_api\converter.cc:374] Convert] Convert model failed, ret=Common error code.
ERROR [mindspore\lite\tools\converter\converter_lite\main.cc:104] main] Convert failed. Ret: Common error code.
Convert failed. Ret: Common error code.
```

2.3 执行命令

```
.\converter\converter_lite --fmk=ONNX --modelFile=best.onnx --outputFile=base
```

**3. 根因分析**

端侧算子支持有限。

**4. 解决方案**

saveType 修改为 MINDIR，执行如下命令。

```
.\converter\converter_lite --fmk=ONNX --modelFile=best.onnx --outputFile=base --saveType=MINDIR
```

