Reference API#
Created On: Apr 16, 2025 | Last Updated On: Oct 19, 2026
Python API
- torch
- torch.nn
- torch.nn.functional
- torch.Tensor
- Tensor Attributes
- Tensor Views
- torch.amp
- torch.autograd
- torch.library
- torch.accelerator
- torch.cpu
- torch.cuda
- torch.cuda.memory
- torch.mps
- torch.xpu
- torch.mtia
- Meta device
- torch.backends
- torch.export
- torch.distributed
- torch.distributions
- torch.compiler
- torch.fft
- torch.foreach
- torch.func
- torch.futures
- torch.fx
- torch.fx.experimental
- torch.hub
- torch.linalg
- torch.monitor
- torch.signal
- torch.special
- torch.overrides
- torch.nativert
- torch.package
- torch.profiler
- torch.nn.init
- torch.nn.attention
- torch.onnx
- torch.optim
- Complex Numbers
- Quantization
- torch.random
- torch.masked
- torch.nested
- torch.Size
- torch.sparse
- torch.Storage
- torch.testing
- torch.utils
- torch.utils.backend_registration
- torch.utils.hooks
- torch.utils.throughput_benchmark
- torch.utils.collect_env
- torch.utils.flop_counter
- torch.utils.hipify.hipify_python
- Type Info
- torch.__config__
- torch.__future__
- torch._logging
- Torch Environment Variables