chekc torch version through terminal code example Example: get the torch version import torch print(torch.__version__)