首页
科技
登录
6mi
u
盘
搜
搜 索
科技
[Linux服务器 错误] TypeError: can‘t convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor
[Linux服务器 错误] TypeError: can‘t convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor
科技
2025-11-10
8
这一错误出现的原因是对之前的cuda中的张量又使用numpy进行计算。检查代码使用A.data.cpu().numpy()变换一下即可继续
转载请注明原文地址:https://blackberry.8miu.com/read-42517.html
最新回复
(
0
)