atc转换onnx模型失败 op dtype is not same
收藏回复举报
atc转换onnx模型失败 op dtype is not same
t('forum.solved') 已解决
新人帖
发表于2023-12-11 15:14:17
0 查看

toolkit版本:Ascend-cann-toolkit_7.0.0.alpha002_linux-x86_64.run

ubuntu版本:Ubuntu 22.04.2 LTS

执行命令:

bird@minipc:~$ atc --framework=5 --model=supercombo.onnx  --input_format=NCHW  --input_shape="input_imgs:1,12,128,256;big_input_imgs:1,12,128,256;desire:1,100,8;traffic_convention:1,2;nav_features:1,256;nav_instructions:1,150;features_buffer:1,99,128"  --output=supercombo --log=debug  --soc_version=Ascend310
ATC start working now, please wait for a moment.
...
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E10042: GenerateOfflineModel execute failed.
        TraceBack (most recent call last):
        op[/summarizer/Div], The /summarizer/Div op dtype is not same, type1:DT_FLOAT16, type2:DT_FLOAT[FUNC:CheckTwoInputDtypeSame][FILE:util.cc][LINE:116]
        Verifying /summarizer/Div failed.[FUNC:InferShapeAndType][FILE:infershape_pass.cc][LINE:137]
        Call InferShapeAndType for node:/summarizer/Div(RealDiv) failed[FUNC:Infer][FILE:infershape_pass.cc][LINE:119]
        process pass InferShapePass on node:/summarizer/Div failed, ret:4294967295[FUNC:RunPassesOnNode][FILE:base_pass.cc][LINE:571]
        build graph failed, graph id:0, ret:1343242270[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1615]
        GenerateOfflineModel execute failed.

onnx模型下载地址: https://github.com/commaai/openpilot/raw/c04e5d12fce1801cd555a4846768b68db7090b17/selfdrive/modeld/models/supercombo.onnx

我要发帖子