atc转换动态batch报错
收藏回复举报
atc转换动态batch报错
t('forum.solved') 已解决
发表于2023-05-05 09:22:24
0 查看

cann版本:6.0.1

转换命令:atc --model=basic.onnx --framework=5 --output=basic --soc_version=Ascend310 --input_shape="input:-1,256,256,3" --dynamic_batch_size="1,2,4,8"

报错信息:

ATC run failed, Please check the detail log, Try 'atc --help' for more information 

E19999: Inner Error! 

E19999  [Node:StatefulPartitionedCall/center_0/conv2d_4/BiasAdd__436_ascend_mbatch_batch_1] Check shape failed, as Shape size is [4], input tensor with [8192] values, is input dynamic shape [0], but requested shape has [4096] values[FUNC:ReshapeInfer][FILE:array_ops.cc][LINE:1597] 

        TraceBack (most recent call last): 

        Call InferShapeAndType for node:StatefulPartitionedCall/center_0/conv2d_4/BiasAdd__436_ascend_mbatch_batch_1(Reshape) failed[FUNC:Infer][FILE:infershape_pass.cc][LINE:119] 

        process pass InferShapePass on node:StatefulPartitionedCall/center_0/conv2d_4/BiasAdd__436_ascend_mbatch_batch_1 failed, ret:4294967295[FUNC:RunPassesOnNode][FILE:base_pass.cc][LINE:537] 

        build graph failed, graph id:0, ret:1343242270[FUNC:BuildModel][FILE:ge_generator.cc][LINE:1429] 

我要发帖子