PyTorch 2 · Tensors

Install PyTorch

Install the library. Choose your CUDA version at pytorch.org/get-started for GPU builds.

pip install torch torchvision

Official PyTorch 2 documentation

More tensors commands

All tensors commands · PyTorch 2 cheatsheet

Was this page helpful?