torch-npu不支持?
收藏回复举报
torch-npu不支持?
t('forum.solved') 已解决
发表于2024-09-27 15:15:11
0 查看

按https://ascend.github.io/docs/sources/pytorch/index.html安装torch-npu没有报错,但是运行示例代码报错
cke_1805.png

示例代码:

import torch
import torch_npu

x = torch.randn(2, 2).npu()
y = torch.randn(2, 2).npu()
z = x.mm(y)

print(z)

我要发帖子