A Simple Guide to Check Torch Version Installed – PyTorch Tutorial

By | June 21, 2022

When we are install some python packages, we may need to know what the installed torch version is. In this tutorial, we will introduce you how to check.

A Simple Guide to Check Torch Version Installed - PyTorch Tutorial

How to check torch version you have installed?

It is easy to check, here is an example code:

import torch
print(torch.__version__)

Run this code, you may see:

1.7.0+cpu

It means we have installed pytorch 1.7.0+cpu version.

Leave a Reply