Run the following command to enter into the python console
python3Enter the following two lines in the console:
import torch;
torch.__version__The terminal will return the torch version installed on yoru machine. The output will be like this:
'1.12.1'