怎么查看torch的版本
时间: 2023-08-06 09:04:34 浏览: 967
要查看PyTorch的版本,可以使用以下命令:
```
import torch
print(torch.__version__)
```
执行这个命令后,会输出当前PyTorch的版本信息。
相关问题
查看torch版本
你可以在Python中运行以下代码来查看你的torch版本:
```python
import torch
print(torch.__version__)
```
这将输出你正在使用的torch版本。
查看torch 版本
你可以使用以下代码来查看你安装的 PyTorch 版本:
```python
import torch
print(torch.__version__)
```
执行这段代码后,会输出你安装的 PyTorch 版本号。