• Docs >
  • Utils >
  • torchtnt.utils.version.get_torch_version
Shortcuts

torchtnt.utils.version.get_torch_version

torchtnt.utils.version.get_torch_version() Version

Get the PyTorch version for the current runtime environment as a Version.

Example:

# if running PyTorch 1.12.0
>>> get_torch_version()
'1.12.0'

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources