2.4K Star 8.2K Fork 4.4K

GVPMindSpore / mindspore

 / 详情

[MS]mindspore2.0中使用numpy数据对ms.Tensor赋值报错存在报错不清晰问题

DONE
Bug-Report
创建于  
2023-06-02 09:35
name about labels
Bug Report Use this template for reporting a bug kind/bug

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

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

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

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :ms2.0
    -- Python version (e.g., Python 3.7.5) :Python3.8
    -- 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 graph

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

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

  1. rot_lidar_w_gt = mindspore.Tensor(np.tile(self.close_rot_heatmap[None, None, ...], (bs, 1, 1, 1)), dtype=mindspore.float32)
  2. 使用numpy对ms.Tensor赋值会报错,但报错提示不明显,定位难度大
  3. [图片上传中…(image-lqmryVOmZ6sLzFFbO0xw)]

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

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

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

评论 (3)

JuiceZ 创建了Bug-Report
JuiceZ 添加了
 
v2.1.0
标签
JuiceZ 添加了
 
usability
标签
展开全部操作日志
duanjiali 添加了
 
stage/func-debug
标签
duanjiali 添加了
 
kind/bug
标签
duanjiali 添加了
 
kind/maintenance
标签
duanjiali 添加协作者duanjiali
duanjiali 负责人duanjiali 修改为zhangqinghua
duanjiali 计划截止日期设置为2023-06-09
duanjiali 里程碑B-SolutionTest 修改为B-SIG-Compiler
duanjiali 关联仓库设置为MindSpore/mindspore
zhangqinghua 负责人zhangqinghua 修改为ligan
zhangqinghua 取消协作者duanjiali
ligan 通过mindspore/docs Pull Request !12057任务状态TODO 修改为DONE
huangbingjian 任务状态DONE 修改为TODO

Appearance & Root Cause
为External类型TypeError增加FQA链接,合入master
https://gitee.com/mindspore/docs/pulls/12057

Fix Description & Test Suggestion
详见:
master: !55304:add reference for External typeerror in multitype_funcgraph.cc/files

输入图片说明
已有错误提示,回归通过

i-robot 添加了
 
foruda
标签
JuiceZ 任务状态TODO 修改为DONE
ligan 添加了
 
rct/newfeature
标签
ligan 添加了
 
rca/others
标签
ligan 添加了
 
ctl/rdselftest
标签
ligan 添加协作者ligan
ligan 负责人ligan 修改为JuiceZ
ligan 里程碑B-SIG-Compiler 修改为B-SIG-MSLite

登录 后才可以发表评论

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

搜索帮助