登录PyTorch网站。
在pytorch网站上会显示当前机器对应的GPU的cuda版本。
执行下面的命令进行安装:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
登录PyTorch网站。
在pytorch网站上会显示当前机器对应的GPU的cuda版本。
执行下面的命令进行安装:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118