PyTorch
A Python deep learning framework for building neural networks and running tensor computations locally on CPUs, NVIDIA GPUs, or AMD GPUs.

PyTorch is a deep learning framework for developers and researchers building neural networks or doing numerical computing on their own hardware.
- Tensor computing: Work with multidimensional arrays on a CPU or GPU, with operations for indexing, linear algebra, mathematics, and reductions.
- Flexible neural networks: Build networks whose behavior can change during execution, with automatic differentiation handling gradients for training.
- Python integration: Use NumPy, SciPy, Cython, and other Python packages alongside your models, and write custom neural network layers in Python or C++.
- Data loading and multiprocessing: Load training data with DataLoader utilities and share tensors across Python processes.
PyTorch is open source under the BSD-3-Clause license and runs locally on Linux, macOS, and Windows. It provides prebuilt binaries and source builds. CPU execution doesn't require a GPU. NVIDIA acceleration uses CUDA on supported Linux and Windows systems; AMD acceleration uses ROCm on Linux.
You can run computations on your own machine or use supported cloud platforms. Docker images and NVIDIA Jetson builds are also available. LibTorch provides a C++ library for applications that need to use PyTorch outside Python.