Here you will learn how to check PyTorch version in Python or from command line through your Python package manager pip or conda (Anaconda/Miniconda).

https://varhowto.com/check-pytorch-version/