(pytorch_api)= # Python API ```{toctree} :glob: :maxdepth: 1 torch nn nn.functional tensors tensor_attributes tensor_view torch.amp torch.autograd torch.library accelerator cpu cuda torch.cuda.memory mps xpu mtia mtia.memory meta torch.backends torch.export torch.distributed torch.distributed.tensor torch.distributed.algorithms.join torch.distributed.elastic torch.distributed.fsdp torch.distributed.fsdp.fully_shard torch.distributed.tensor.parallel torch.distributed.optim torch.distributed.pipelining torch.distributed.checkpoint torch.distributions torch.compiler torch.fft torch.func futures fx fx.experimental torch.hub torch.jit torch.linalg torch.monitor torch.signal torch.special torch.overrides torch.package profiler nn.init nn.attention onnx optim complex_numbers ddp_comm_hooks quantization rpc torch.random masked torch.nested size sparse storage torch.testing torch.utils torch.utils.benchmark torch.utils.bottleneck torch.utils.checkpoint torch.utils.cpp_extension torch.utils.data torch.utils.deterministic torch.utils.jit torch.utils.dlpack torch.utils.mobile_optimizer torch.utils.model_zoo torch.utils.tensorboard torch.utils.module_tracker type_info named_tensor name_inference torch.__config__ torch.__future__ logging torch_environment_variables ```