atc转换onnx模型报错 E19014: Value [input x shape] for Op [/Sigmoid_1] is invalid. Reason: contains negative or zero dimension.
收藏回复举报
atc转换onnx模型报错 E19014: Value [input x shape] for Op [/Sigmoid_1] is invalid. Reason: contains negative or zero dimension.
t('forum.solved') 已解决
发表于2024-05-07 18:28:29
0 查看

适配rtm-det到ascend 310上,CANN 5.0.2

执行

atc --mode=0 --model=out.onnx --framework=5 --output=./onnx_om --soc_version=Ascend310  --input_format=NCHW --log=debug --input_shape="input:1,3,640,640"

报错:

ATC run failed, Please check the detail log, Try 'atc --help' for more information
E19014: Value [input x shape] for Op [/Sigmoid_1] is invalid. Reason: contains negative or zero dimension.
        /Sigmoid_1(Sigmoid) Verify failed.[FUNC:Verify][FILE:node.cc][LINE:804]
        Verifying /Sigmoid_1(Sigmoid) failed.[FUNC:InferShapeAndType][FILE:shape_refiner.cc][LINE:785]
        Call InferShapeAndType for node:/Sigmoid_1(Sigmoid) failed, input_tensor:{input_0 tensor: [(shape:[-1,-1,-8,-8]),(format:ND),(dtype:DT_FLOAT),(origin_shape:-1,-1,-8,-8),(origin_format:ND),(origin_dtype:DT_FLOAT),(shape_range:[])][FUNC:Run][FILE:infershape_pass.cc][LINE:95]
        process pass InferShapePass on node:/Sigmoid_1 failed, ret:1343242270[FUNC:RunPasses][FILE:base_pass.cc][LINE:161]
        build graph failed, graph id:0, ret:1343242268[FUNC:BuildModel][FILE:ge_generator.cc][LINE:1157]

ONNX文件下载链接

实在是不知道怎么解决,求助

我要发帖子