查看pytorch版本的方法

首先在终端中输入python进入python交互式环境

接着输入

import torch
print(torch.__version__)  #注意是双下划线

如图所示即可

猜你喜欢

转载自blog.csdn.net/square_zou/article/details/81502514