GeForce RTX 3080 with CUDA capability sm_86 is not compatible with the current PyTorch installation.
1.通过最近装cuda环境研究发下仅仅通过以下命令是不能够测试cuda是否可以正常使用的。
import torch
# 我在python的命令环境测试该命令 返回是True的但是在run torch程序的时候报错
torch.cuda.is_available()
2.如果想要测是你的cuda版本torch是否可以使用,使用以下命令测试可能会更好。
import torch
torch.zeros(1).cuda()
如果报错是GeForce RTX 3080 with CUDA capabilit
原创
2020-12-04 15:58:33 ·
14298 阅读 ·
4 评论