ubuntu中查看PyTorch版本的方法:1、打开ubuntu终端;2、输入“python”命令Python交互式环境;3、通过“import torch”和“torch.__version__”命令查看pytorch版本即可。具体操作步
ubuntu中查看PyTorch版本的方法:1、打开ubuntu终端;2、输入“python”命令Python交互式环境;3、通过“import torch”和“torch.__version__”命令查看pytorch版本即可。
具体操作步骤:
在ubuntu系统桌面中使用快捷键【Ctrl+Alt+T】打开ubuntu终端命令行模式。
在ubuntu终端命令行中输入以下命令进入python交互式环境。
python #进入python交互式环境
最后输入以下命令查看pytorch版本即可。
import torch
torch.__version__
相关示例:
user@home:~$ python
Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 13 2017, 12:02:49)
Type "help", "copyright", "credits" or "license" for more infORMation.
>>> import torch
>>> torch.__version__
'1.0.1.post2'
--结束END--
本文标题: ubuntu怎么查看pytorch版本
本文链接: https://www.lsjlt.com/news/110759.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
2024-05-12
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0