74 Star 218 Fork 167

Ascend / modelzoo

 / 详情

【模型转换】onnx模型转om过程中报错type[org.pytorch._caffe2::1::AliasWithName] failed

DONE
Bug-Report 成员
创建于  
2021-04-06 20:21

转换命令

atc --model=./model.onnx --framework=5 --output=./out_model --soc_version=Ascend310 --input_shape="data:1,3,800,600;im_info:1,3"

报错日志

ATC start working now, please wait for a moment.
[WARNING][2021-04-06 02:00:50,003]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
[WARNING][2021-04-06 02:00:52,404]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
[WARNING][2021-04-06 02:00:52,410]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
[WARNING][2021-04-06 02:00:52,444]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
[WARNING][2021-04-06 02:00:52,467]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
[WARNING][2021-04-06 02:00:52,488]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
[WARNING][2021-04-06 02:00:52,515]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
[WARNING][2021-04-06 02:00:52,562]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
[WARNING][2021-04-06 02:00:52,571]/home/HwHiAiUser/Ascend/ascend-toolkit/3.3.0.alpha001/x86_64-linux/atc/python/site-packages/te/tvm/contrib/ccec.py:549: DeprecationWarning: invalid escape sequence \L
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E19010: Check op[AliasWithName_0]'s type[org.pytorch._caffe2::1::AliasWithName] failed, the type is unsupported.
E19010: Check op[AliasWithName_1]'s type[org.pytorch._caffe2::1::AliasWithName] failed, the type is unsupported.
E16005: The size of domain_version[2] should be equal to one.

请问这种情况怎么处理?

评论 (7)

许业涛 创建了Bug-Report
许业涛 关联仓库设置为Ascend/modelzoo
展开全部操作日志

正常的话type应该是onnx.ai.11::AliasWithName
请问您onnx是怎么转的?

曹仁平 任务状态TODO 修改为Analysing
曹仁平 负责人设置为曹仁平

您好,onnx的问题已经解决,新的onnx转om存在不支持算子:
【模型链接】
链接:https://pan.baidu.com/s/1jvGsgnnGlAevQDilyA_rZg
提取码:u9wi
【ATC指令】
atc --model=mask_rcnn.onnx --framework=5 --input_format=NCHW --log=debug --soc_version=Ascend310 --input_shape="images:3,782,640" --output=11
【报错信息】
ATC start working now, please wait for a moment.
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E19010: Check op[NonZero_1409]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[GatherND_1411]'s type[ai.onnx::11::GatherND] failed, the type is unsupported.
E19010: Check op[NonZero_1414]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[GatherND_1416]'s type[ai.onnx::11::GatherND] failed, the type is unsupported.
E19010: Check op[NonZero_1418]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[GatherND_1420]'s type[ai.onnx::11::GatherND] failed, the type is unsupported.
E19010: Check op[NonZero_1489]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[NonZero_1508]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[NonZero_1538]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[NonZero_1568]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[NonZero_1771]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[NonZero_1774]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[GatherND_1776]'s type[ai.onnx::11::GatherND] failed, the type is unsupported.
E19010: Check op[NonZero_1778]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[GatherND_1780]'s type[ai.onnx::11::GatherND] failed, the type is unsupported.
E19010: Check op[NonZero_1857]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[NonZero_1876]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[NonZero_1906]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.
E19010: Check op[NonZero_1936]'s type[ai.onnx::11::NonZero] failed, the type is unsupported.

上面报不支持的两个算子中:
GatherND还在开发中,开发完成后如升版会通知,请关注。
NonZero暂不支持。

gatherND算子3月中旬已经上库,估计最新版本应该包含
nonzero算子预计6.30支持

您好,请问gatherND算子现在发布版本支持了么

现在发布的最新版本已经包含

zhengtao 负责人曹仁平 修改为未设置
zhengtao 负责人设置为镇亮

如问题已解决,请关闭issue

zhujianpeng 任务状态Analysing 修改为DONE
吴定远 关联仓库Ascend/modelzoo-his 修改为Ascend/modelzoo

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(4)
1
https://gitee.com/ascend/modelzoo.git
git@gitee.com:ascend/modelzoo.git
ascend
modelzoo
modelzoo

搜索帮助