torch.cuda.is_available()返回false
解决方法:已经安装torch的:
import platform
import torch
sysstr = platform.system()
use_cuda = torch.cuda.is_available()
print('cuda',torch.cuda.is_available(),torch._C._cuda_getDriverVersion())
daa=torch.Tensor([1,23])
print(daa.cuda())
cuda10 不行的10000 411.31 升级完412.36
后来也不行,重装torch1.2.0
http://download.pytorch.org/whl/cu100/torch-1.2.0-cp36-cp36m-win_amd64.whl
cuda10 可以的 10020 442.19
没有安装torch的:
检查CUDA版本,目前Pytorch仅支持到CUDA 10.0版本。
&nb
订阅专栏 解锁全文
6907



被折叠的 条评论
为什么被折叠?



