关于使用atc转化onnx模型出现E10042报错
收藏回复举报
关于使用atc转化onnx模型出现E10042报错
新人帖
发表于2024-03-31 19:37:01
0 查看

求助模型转化时出现下列错误:

$ atc --model=test.onnx --framework=5 --output=out --input_shape="input:-1,3,12000" --soc_version=Ascend310B4 --dynamic_batch_size="4,8,16,32"

ATC start working now, please wait for a moment.

Traceback (most recent call last):

  File "/usr/local/Ascend/ascend-toolkit/latest/python/site-packages/te_fusion/fusion_manager.py", line 1912, in set_op_import_module

    importlib.import_module(module_name)

  File "/usr/local/miniconda3/lib/python3.9/importlib/__init__.py", line 127, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load

  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked

  File "<frozen importlib._bootstrap_external>", line 786, in exec_module

  File "<frozen importlib._bootstrap_external>", line 922, in get_code

  File "<frozen importlib._bootstrap_external>", line 979, in get_data

PermissionError: [Errno 13] Permission denied: '/usr/local/Ascend/ascend-toolkit/7.0.RC1/opp/vendors/customize/op_impl/ai_core/tbe/customize_impl/mrgba.py'

...

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

E10042: GenerateOfflineModel execute failed.

        TraceBack (most recent call last):

        Input format not support[FUNC:ResizeNearestInferShape][FILE:image_ops.cc][LINE:3168]

        Call InferShapeAndType for node:PartitionedCall_Resize_276_Resize_228_ascend_mbatch_batch_0(Resize) failed[FUNC:Infer][FILE:infershape_pass.cc][LINE:119]

        process pass InferShapePass on node:PartitionedCall_Resize_276_Resize_228_ascend_mbatch_batch_0 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.

我要发帖子