How to check the Pytorch version installed?

To check the version of pytorch installed in the system, open a python interpretor and write the following commands:
import torch
print (torch.__version__)
Or you can write this in the terminal command prompt directly:
python -c "import torch; print (torch.__version__)"
The output will be like this:
1.1.0

No comments:

Post a Comment