二、pytorch安装
使用pip命令安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch1.6.0 torchvision0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
使用命令检验是否出错
import torch
torch.version
torch.cuda.is_available()
二、pytorch安装
使用pip命令安装
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch1.6.0 torchvision0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
使用命令检验是否出错
import torch
torch.version
torch.cuda.is_available()