解决.cuda()加载用时很长的问题

mac2022-06-30  30

方法一:pip install --upgrade --force-reinstall http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl #后面这个可以自己到官网上找自己对应的python和cuda版本的安装包,官网为链接: 方法二:conda install pytorch torchvision cuda80 -c soumith#这里可以根据自己cuda版本确定。查看cuda版本,在python命令行里面输入:

import torch torch.version.cuda

即可。

最新回复(0)