ATC转onnx模型失败,E10042
收藏回复举报
ATC转onnx模型失败,E10042
t('forum.solved') 已解决
发表于2024-02-01 09:47:33
0 查看

atc转模型默认转成x86_ubuntu格式,在arm上没法加载推理,加上host_env_os=ubuntu, host_env_cpu=aarch64,出现以下错误:

...

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

E10042: GenerateOfflineModel execute failed.

        TraceBack (most recent call last):

        Load and store op proto so failed, path:/home/leo/Ascend/ascend-toolkit/mdc/x86_64-linux/../opp/built-in/op_proto/lib/ubuntu/aarch64[FUNC:GetSoBinData][FILE:model_helper.cc][LINE:391]

        Assert ((GetSoBinData(host_env_cpu, host_env_os)) == ge::SUCCESS) failed[FUNC:SaveSoStoreModelPartitionInfo][FILE:model_helper.cc][LINE:443]

        [SaveSoStoreModelPartitionInfo]Failed[FUNC:SaveToOmRootModel][FILE:model_helper.cc][LINE:630]

        SaveToOmRootModel failed, ret:1343225857, model id:4294967295, om_format:0[FUNC:SaveRootModel][FILE:ge_generator.cc][LINE:1553]

        GenerateOfflineModel execute failed.

该怎么解决?

我要发帖子