pytorch查询版本
时间: 2023-08-09 08:09:46 浏览: 160
cnn-imageretrieval-pytorch-port:CNN图像检索模型权重已移植
要查询PyTorch的版本,可以在Python终端中输入以下命令:
```
import torch
print(torch.__version__)
```
这将打印出PyTorch的版本号。\[1\]另外,你也可以在命令提示符中输入以下命令:
```
python
import torch
print(torch.__version__)
```
同样,这将输出PyTorch的版本号。\[2\]
#### 引用[.reference_title]
- *1* [Windows下查看安装的PyTorch版本的两种方法](https://blog.csdn.net/weixin_43401024/article/details/129650045)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [pytorch版本的查看](https://blog.csdn.net/weixin_43412666/article/details/117320685)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文