【pytorch 和torchvision 版本对应关系及安装】

  • 参考链接:

GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer VisionDatasets, Transforms and Models specific to Computer Vision - GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer Visionhttps://github.com/pytorch/vision#installationPyTorch An open source machine learning framework that accelerates the path from research prototyping to production deployment.https://pytorch.org/Previous PyTorch Versions | PyTorch An open source machine learning framework that accelerates the path from research prototyping to production deployment.https://pytorch.org/get-started/previous-versions/

  • 对应关系:
torchtorchvisionpython
main / nightlymain / nightly>=3.7<=3.10
1.11.00.12.0>=3.7<=3.10
1.10.20.11.3>=3.6<=3.9
1.10.10.11.2>=3.6<=3.9
1.10.00.11.1>=3.6<=3.9
1.9.10.10.1>=3.6<=3.9
1.9.00.10.0>=3.6<=3.9
1.8.20.9.2>=3.6<=3.9
1.8.10.9.1>=3.6<=3.9
1.8.00.9.0>=3.6<=3.9
1.7.10.8.2>=3.6<=3.9
1.7.00.8.1>=3.6<=3.8
1.7.00.8.0>=3.6<=3.8
1.6.00.7.0>=3.6<=3.8
1.5.10.6.1>=3.5<=3.8
1.5.00.6.0>=3.5<=3.8
1.4.00.5.0==2.7>=3.5<=3.8
1.3.10.4.2==2.7>=3.5<=3.7
1.3.00.4.1==2.7>=3.5<=3.7
1.2.00.4.0==2.7>=3.5<=3.7
1.1.00.3.0==2.7>=3.5<=3.7
<=1.0.10.2.2==2.7>=3.5<=3.7

  • 安装方法:

Linux and Windows

# ROCM 4.2 (Linux only)
pip install torch==1.10.1+rocm4.2 torchvision==0.11.2+rocm4.2 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html

# ROCM 4.1 (Linux only)
pip install torch==1.10.1+rocm4.1 torchvision==0.11.2+rocm4.1 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html

# ROCM 4.0.1 (Linux only)
pip install torch==1.10.1+rocm4.0.1 torchvision==0.10.2+rocm4.0.1 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html

# CUDA 11.1
pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html

# CUDA 10.2
pip install torch==1.10.1+cu102 torchvision==0.11.2+cu102 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html

# CPU only
pip install torch==1.10.1+cpu torchvision==0.11.2+cpu torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html

  • 6
    点赞
  • 70
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值