1、安装指令:

 pip3 install torch torchvision torchaudio -i https://pypi.tuna.tsinghua.edu.cn/simple

2、验证torch是否安装成功

// 使用python验证
import torch
print(torch.__version__)

能正常打印版本即表示安装成功,如下图
在这里插入图片描述

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐