MindSpore.ops中的api是否可以支持在Atlas 300I Pro上执行
收藏回复举报
MindSpore.ops中的api是否可以支持在Atlas 300I Pro上执行
t('forum.solved') 已解决
发表于2024-01-25 21:06:49
0 查看

如题,尝试在Atlas 300I Pro上执行MindSpore.ops中的数学运算函数api,运行例程会报错

不知道是本就不支持?还是我自己代码配置的问题?

例程代码

import mindspore
import numpy as np
from mindspore import Tensor, ops
input = Tensor(np.array([-1.0, 1.0, 0.0]), mindspore.float32)
output = ops.abs(input)
print(output)

报错信息

[WARNING] ME(2578:140446814533440,MainProcess):2024-01-25-21:02:37.647.315 [mindspore/run_check/_check_version.py:348] Using custom Ascend AI software package (Ascend Data Center Solution) path, package version checking is skipped. Please make sure Ascend AI software package (Ascend Data Center Solution) version is supported. For details, refer to the installation guidelines https://www.mindspore.cn/install
[WARNING] ME(2578:140446814533440,MainProcess):2024-01-25-21:02:37.647.784 [mindspore/run_check/_check_version.py:468] Can not find driver so(need by mindspore-ascend). Please check whether the Environment Variable LD_LIBRARY_PATH is set. For details, refer to the installation guidelines: https://www.mindspore.cn/install
Traceback (most recent call last):
  File "/home/ascend/project/test.py", line 6, in <module>
    print(output)
  File "/usr/local/python3.7.5/lib/python3.7/site-packages/mindspore/common/_stub_tensor.py", line 49, in fun
    return method(*arg, **kwargs)
  File "/usr/local/python3.7.5/lib/python3.7/site-packages/mindspore/common/tensor.py", line 493, in __str__
    return str(self.asnumpy())
  File "/usr/local/python3.7.5/lib/python3.7/site-packages/mindspore/common/tensor.py", line 964, in asnumpy
    return Tensor_.asnumpy(self)
RuntimeError: The pointer[res_manager_] is null.

----------------------------------------------------
- Framework Unexpected Exception Raised:
----------------------------------------------------
This exception is caused by framework's unexpected error. Please create an issue at https://gitee.com/mindspore/mindspore/issues to get help.

----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/ccsrc/plugin/device/ascend/hal/hardware/ge_kernel_executor.cc:532 LaunchKernel

我要发帖子