99 Star 800 Fork 1.4K

MindSpore / models

 / 详情

test_div.py NPU error

REJECTED
Question
创建于  
2023-01-17 16:39

python test_div.py, 错误如下:

(mmlab) [root@localhost test_network_ops]# python test_div.py

Warning: Overriding a previously registered kernel for the same operator and the same dispatch key
operator: aten::_has_compatible_shallow_copy_type(Tensor self, Tensor from) -> (bool)
registered at pytorch-release-1.8/build/aten/src/ATen/RegisterSchema.cpp:20
dispatch key: Math
previous kernel: registered at pytorch-release-1.8/build/aten/src/ATen/RegisterMath.cpp:5686
new kernel: registered at pytorch-v1.8.1-3.0.rc2/torch_npu/csrc/aten/ops/HasCompatibleShallowCopyType.cpp:37 (function registerKernel)
Fail to import hypothesis in common_utils, tests are not derandomized


Traceback (most recent call last):
File "/root/miniconda3/envs/mmlab/lib/python3.8/site-packages/torch_npu/testing/testcase.py", line 67, in setUpClass
self.npu_device = set_npu_device()
File "/root/miniconda3/envs/mmlab/lib/python3.8/site-packages/torch_npu/testing/common_utils.py", line 79, in set_npu_device
torch.npu.set_device(npu_device)
File "/root/miniconda3/envs/mmlab/lib/python3.8/site-packages/torch_npu/npu/utils.py", line 150, in set_device
torch_npu._C._npu_setDevice(torch.device(device).index)
RuntimeError: Initialize:pytorch-v1.8.1-3.0.rc2/torch_npu/csrc/core/npu/sys_ctrl/npu_sys_ctrl.cpp:102 NPU error, error code is 100003
EH9999: Inner Error!
EH9999 [Trans][RealPath]the file path acl.json is not like a real path, mmRealPath return -1, errMessage is No such file or directory[FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:146]
[Check][File]invalid config file[acl.json][FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:146]
[Parse][JsonFromFile]parse dump config from file[acl.json] failed, errorCode = 100003[FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:146]


Ran 0 tests in 0.383s

FAILED (errors=1)
THPModule_npu_shutdown success.

安装版本:
python=3.8.15
pytorch=v1.8.1-3.0.rc2
CANN=5.1.R2
gcc=7.5

评论 (3)

luhc15 创建了Question

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

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.
为了让代码尽快被审核,请您为Pull Request打上 组件(comp)或兴趣组(sig) 标签,打上标签的PR可直接推送给责任人进行审核。
更多的标签可以查看https://gitee.com/mindspore/community/blob/master/sigs/dx/docs/labels.md
以组件相关代码提交为例,如果你提交的是data组件代码,你可以这样评论:
//comp/data
当然你也可以邀请data SIG组来审核代码,可以这样写:
//sig/data
另外你还可以给这个PR标记类型,例如是bugfix或者是特性需求:
//kind/bug or //kind/feature
恭喜你,你已经学会了使用命令来打标签,接下来就在下面的评论里打上标签吧!

luhc15 修改了描述
luhc15 修改了描述
luhc15 修改了描述
luhc15 修改了描述
luhc15 修改了描述
luhc15 修改了描述
luhc15 修改了描述
luhc15 修改了描述
luhc15 修改了描述
wuweikang 任务状态TODO 修改为ACCEPTED
wuweikang 关联项目设置为MindSpore Issue Assistant
wuweikang 添加了
 
mindspore-assistant
标签
wuweikang 任务状态ACCEPTED 修改为REJECTED

看报错你的配置应该是pytorch+NPU,建议到Ascend-pytorch社区( https://gitee.com/ascend/pytorch ) 提问,谢谢!

登录 后才可以发表评论

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

搜索帮助

344bd9b3 5694891 D2dac590 5694891