运行import torch_npu 造成MindStudio报错 interrupted by signal 11:SIGSEGV
运行官方给出的测试代码运行时间特别长,代码如下:
import torch
x = torch.randn(2, 2).npu()
y = torch.randn(2, 2).npu()
z = x.mm(y)
print(z)
使用 torch_npu.npu.get_device_properties()函数时,运行到`torch_npu.npu._lazy_init()'时会进入死循环
运行官方给出的测试代码运行时间特别长,代码如下:
import torch
x = torch.randn(2, 2).npu()
y = torch.randn(2, 2).npu()
z = x.mm(y)
print(z)
使用 torch_npu.npu.get_device_properties()函数时,运行到`torch_npu.npu._lazy_init()'时会进入死循环