1、pip安装
pip install torch
默认最新版本,如果指定版本,
pip install torch ==
2、 conda安装
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch -n <环境名>
1、pip安装
pip install torch
默认最新版本,如果指定版本,
pip install torch ==
2、 conda安装
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch -n <环境名>