2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

[ST][MS][EXPORT] onnx导出用例报错The pointer[value] is null.

TODO
RFC
创建于  
2023-11-22 11:35
name about labels
Bug Report Use this template for reporting a bug kind/bug

Describe the current behavior / 问题描述 (Mandatory / 必填)

导出用例报错The pointer[value] is null.

Environment / 环境信息 (Mandatory / 必填)

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
/device ascend

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :commit_id = '[sha1]:67bcc313,[branch]:(HEAD,origin/r2.3,r2.3)'
    -- Python version (e.g., Python 3.7.5) :
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph):

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph

Related testcase / 关联用例 (Mandatory / 必填)

test_export_resnet50_cifar10

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

1、 安装mindspore

2、 设置相应的场景参数

3、 运行用例

cd /home/jenkins/workspace/TDT_deployment/solution_test/

nosetests -s remaining/test_scripts/mindspore/features/exportmodel/test_export_resnet50_cifar10.py

Describe the expected behavior / 预期结果 (Mandatory / 必填)

用例执行成功,无异常

Related log / screenshot / 日志 / 截图 (Mandatory / 必填)

输入图片说明

Special notes for this issue/备注 (Optional / 选填)

开发责任人:常哲睿

评论 (9)

陶青 创建了Bug-Report
陶青 添加了
 
kind/bug
标签
陶青 添加了
 
attr/function
标签
陶青 添加了
 
stage/func-debug
标签
陶青 添加了
 
v2.3.0
标签
陶青 添加了
 
sig/frontend
标签
展开全部操作日志

Please assign maintainer to check this issue.
请为此issue分配处理人。
@陶青

感谢您的反馈,您可以评论//mindspore-assistant更快获取帮助,更多标签可以查看标签列表

  1. 如果您刚刚接触MindSpore,或许您可以在教程找到答案
  2. 如果您是资深Pytorch用户,您或许需要:
    与PyTorch典型区别 / PyTorch与MindSpore API映射表
  3. 如果您遇到动态图问题,可以设置mindspore.set_context(pynative_synchronize=True)查看报错栈协助定位
  4. 模型精度调优问题可参考官网调优指南
  5. 如果您反馈的是框架BUG,请确认您在ISSUE中提供了MindSpore版本、使用的后端类型(CPU、GPU、Ascend)、环境、训练的代码官方链接以及可以复现报错的代码的启动方式等必要的定位信息
  6. 如果您已经定位出问题根因,欢迎提交PR参与MindSpore开源社区,我们会尽快review

算子动态shape整改后,onnx中的算子属性转换会失效,所有整改算子都要进行onnx的适配。
需要一个框架整体策略,请陈飞协调一下

mudongrui 添加协作者mudongrui
mudongrui 负责人mudongrui 修改为chenfei_mindspore
changzherui 里程碑B-SIG-FrontEnd 修改为B-SIG-DS

st用例失败
tests/st/ops/cpu
test_reduce_op.py::test_reduce_any_onnx
test_reduce_op.py::test_reduce_all_onnx

[2023-11-23T19:44:14.208Z] >       return self._graph_executor.get_func_graph_proto(exec_id, ir_type, incremental)
[2023-11-23T19:44:14.208Z] E       RuntimeError: The pointer[value] is null.
[2023-11-23T19:44:14.208Z] E       
[2023-11-23T19:44:14.208Z] E       ----------------------------------------------------
[2023-11-23T19:44:14.208Z] E       - Framework Unexpected Exception Raised:
[2023-11-23T19:44:14.208Z] E       ----------------------------------------------------
[2023-11-23T19:44:14.208Z] E       This exception is caused by framework's unexpected error. Please create an issue at https://gitee.com/mindspore/mindspore/issues to get help.
[2023-11-23T19:44:14.208Z] E       
[2023-11-23T19:44:14.208Z] E       ----------------------------------------------------
[2023-11-23T19:44:14.208Z] E       - C++ Call Stack: (For framework developers)
[2023-11-23T19:44:14.208Z] E       ----------------------------------------------------
[2023-11-23T19:44:14.208Z] E       mindspore/core/ir/anf.h:909 GetValue
[2023-11-23T19:44:14.208Z] 
[2023-11-23T19:44:14.208Z] /home/jenkins/.local/lib/python3.7/site-packages/mindspore/common/api.py:1671: RuntimeError
[2023-11-23T19:44:14.208Z] =============================== warnings summary ===============================
[2023-11-23T19:44:14.208Z] /home/jenkins/.local/lib/python3.7/site-packages/pandas/compat/__init__.py:124
[2023-11-23T19:44:14.208Z]   /home/jenkins/.local/lib/python3.7/site-packages/pandas/compat/__init__.py:124: UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
[2023-11-23T19:44:14.208Z]     warnings.warn(msg)
[2023-11-23T19:44:14.208Z] 
[2023-11-23T19:44:14.208Z] -- Docs: https://docs.pytest.org/en/latest/warnings.html
[2023-11-23T19:44:14.208Z] =========================== short test summary info ============================
[2023-11-23T19:44:14.208Z] FAILED test_reduce_op.py::test_reduce_all_onnx - RuntimeError: The pointer[va...
i-robot 添加了
 
gitee
标签
i-robot 添加了
 
docs
标签

onnx导出问题,后续待评审

bert网络在GPU/CPU上导出onnx时也报错The pointer[value] is null
关联用例:solution_test/cases/02network/02nlp/bert/export/test_ms_bert_classifier_bert_export_onnx_0001.py

changzherui 修改了标题
changzherui 任务类型Bug-Report 修改为RFC
changzherui 添加了
 
ccb/rfc
标签
chentanjie 添加协作者chentanjie
chentanjie 取消协作者chentanjie

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(8)
7347217 changzherui 1584948547 11046135 chen panmiao 1702868389 6521784 chenfei52 1584972569
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore

搜索帮助