pytorch setup code example
Example 1: pytorch install
pip install torch==1.8.1+cu102 torchvision==0.9.1+cu102 torchaudio===0.8.1 -f https:
Example 2: torch conda
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
Example 3: mac install pytorch 3.6
conda install pytorch torchvision -c pytorch
Example 4: install pytorch for windows
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
Example 5: install pytorch
NOTE: Python 3.9 users will need to add '-c=conda-forge' for installationconda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch