承接国内外服务器租用托管、定制开发、网站代运营、网站seo优化托管接单、网站代更新,新老站点皆可!!咨询QQ:3787320601

版本:ubuntu如何查看pytorch版本

管理员 2023-04-07 08:42:25 互联网圈 243 ℃ 0 评论 1161字 收藏

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'

文章来源:丸子建站

文章标题:版本:ubuntu如何查看pytorch版本

https://www.wanzijz.com/view/6858.html

TAG: ubuntu pytorch

相关文章

Related articles

X

截屏,微信识别二维码

微信号:weimawl

(点击微信号复制,添加好友)

打开微信