赞
踩
We’d prefer you install the latest version, but old binaries and installation instructions are provided below for your convenience.
- # conda
- conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 -c pytorch
- # CUDA 11.8
- conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=11.8 -c pytorch -c nvidia
- # CUDA 12.1
- conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=12.1 -c pytorch -c nvidia
- # CPU Only
- conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 cpuonly -c pytorch
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0
- # ROCM 5.6 (Linux only)
- pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/rocm5.6
- # CUDA 11.8
- pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu118
- # CUDA 12.1
- pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu121
- # CPU only
- pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。