• 参考链接:

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

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐