当前位置:首页 > 千层云服务器 > 正文

ubuntu怎么查看pytorch版本

ubuntu中查看pytorch版本的方法:1、打开ubuntu终端;2、输入“python”命令python交互式环境;3、通过“import torch”和“torch.__version__”命令查看pytorch版本即可。

ubuntu怎么查看pytorch版本

具体操作步骤:

1、在ubuntu系统桌面中使用快捷键【Ctrl+Alt+T】打开ubuntu终端命令行模式。

2、在ubuntu终端命令行中输入以下命令进入python交互式环境。

python #进入python交互式环境

3、最后输入以下命令查看pytorch版本即可。

import torch

torch.__version__

相关示例:

user@home:~$ python

Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 13 2017, 12:02:49)

[GCC 7.2.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import torch

>>> torch.__version__

'1.0.1.post2'

如果您对该产品感兴趣,请填写办理(客服微信:xiaoxiongyidong)

为您推荐:

发表评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

在线客服