Mac Установите Pytorch
# Python 3.x
pip3 install torch torchvision --user
Matteoweb
# Python 3.x
pip3 install torch torchvision --user
conda install pytorch torchvision -c pytorch
pip install torch===1.5.0 torchvision===0.6.0 -f https://download.pytorch.org/whl/torch_stable.html
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch