2.3K Star 8K Fork 4.2K

GVPMindSpore / mindspore

 / 详情

[BUG][MS][pip installation]Example cannot run after pip install MindSpore.

DONE
Bug-Report 成员
创建于  
2021-06-29 15:22
name about labels
Bug Report Use this template for reporting a bug kind/bug

Environment

  • Hardware Environment(Ascend/GPU/CPU):

Uncomment only one /device <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/device gpu

  • Software Environment:
    -- MindSpore version (source or binary):commit_id = ''[sha1]:627b18b2,[branch]:(HEAD,origin/master,origin/HEAD,master)''
    -- 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):

Related testcase

test_install_gpu

Steps to reproduce the issue

  1. pip install mindspore_gpu-1.3.0-cp39-cp39-linux_x86_64.whl -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com
  2. import numpy as np
    from mindspore import Tensor
    import mindspore.ops as ops
    import mindspore.context as context

context.set_context(device_target="GPU")
x = Tensor(np.ones([1,3,3,4]).astype(np.float32))
y = Tensor(np.ones([1,3,3,4]).astype(np.float32))
print(ops.add(x, y))

Describe the current behavior

enter image description here

Describe the expected behavior

代码中解除和easydict库的依赖

Related log / screenshot

Special notes for this issue

安装mindspore3.9 python包之后执行用例失败。

评论 (5)

mudongrui 创建了Bug-Report
mudongrui 计划截止日期设置为2021-12-31
mudongrui 关联仓库设置为MindSpore/mindspore
mudongrui 负责人设置为linqingke
mudongrui 里程碑设置为B-NET
mudongrui 计划开始日期设置为2021-06-29
mudongrui 优先级设置为次要
mudongrui 添加了
 
v1.3.0
标签
mudongrui 添加了device/gpu(已删除)标签
mudongrui 添加了
 
kind/bug
标签
展开全部操作日志

Please add labels (comp or sig), also you can visit "https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md" to find more.
为了让问题更快得到响应,请您为该issue打上**组件(comp)或兴趣组(sig)**标签,打上标签的问题可以直接推送给责任人进行处理。更多的标签可以查看 https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md"
以组件问题为例,如果你发现问题是data组件造成的,你可以这样评论:
//comp/data
当然你也可以向data SIG组求助,可以这样写:
//comp/data
//sig/data
如果是一个简单的问题,你可以留给刚进入社区的小伙伴来回答,这时候你可以这样写:
//good-first-issue
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

linqingke 任务状态TODO 修改为VALIDATION
linqingke 添加协作者linqingke
linqingke 负责人linqingke 修改为mudongrui
linqingke 里程碑B-NET 修改为B-SolutionTest

已经移除easydict的依赖。

Appearance & Root Cause

原本解析字典带有easydict的依赖

Fix Solution

去除easydict,改用dict

回归时间:2021.07.08

回归版本:
commit_id = ''[sha1]:f9a2a0ba,[branch]:(HEAD,origin/master,origin/HEAD,master)''
commit_id = ''[sha1]:5770ee29,[branch]:(HEAD,origin/r1.3,r1.3)''

回归步骤:
pip install mindspore_gpu-1.3.0-cp39-cp39-linux_x86_64.whl

回归结果:
enter image description here
master与1.3版本都已修改,不需要easydict依赖库

回归结论:回归通过。

mudongrui 任务状态VALIDATION 修改为DONE

//stage/preparation
//attr/function
//func/deployment

mindspore-dx-bot 添加了
 
stage/preparation
标签
mindspore-dx-bot 添加了
 
attr/function
标签
mindspore-dx-bot 添加了func/deployment(已删除)标签
mindspore-dx-bot 移除了device/gpu(已删除)标签
mindspore-dx-bot 移除了func/deployment(已删除)标签

登录 后才可以发表评论

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

搜索帮助