[ ](https://pytorch.org/)

  * [ Get Started ](https://pytorch.org/get-started)
  * [ Ecosystem ](https://pytorch.org/ecosystem)
  * Edge 

[ About PyTorch Edge  ](https://pytorch.org/edge) [ ExecuTorch
](https://pytorch.org/executorch)

  * [ Blog ](https://pytorch.org/blog/)
  * [ Tutorials ](https://pytorch.org/tutorials)
  * Docs 

[ PyTorch  ](https://pytorch.org/docs/stable/index.html) [ torchaudio
](https://pytorch.org/audio/stable/index.html) [ torchtext
](https://pytorch.org/text/stable/index.html) [ torchvision
](https://pytorch.org/vision/stable/index.html) [ torcharrow
](https://pytorch.org/torcharrow) [ TorchData  ](https://pytorch.org/data) [
TorchRec  ](https://pytorch.org/torchrec) [ TorchServe
](https://pytorch.org/serve/) [ TorchX  ](https://pytorch.org/torchx/) [
PyTorch on XLA Devices  ](https://pytorch.org/xla)

  * Resources 

[ About  Learn about PyTorch’s features and capabilities
](https://pytorch.org/features) [ PyTorch Foundation  Learn about the PyTorch
foundation  ](https://pytorch.org/foundation) [ Community  Join the PyTorch
developer community to contribute, learn, and get your questions answered.
](https://pytorch.org/#community-module) [ Community Stories  Learn how our
community solves real, everyday machine learning problems with PyTorch.
](https://pytorch.org/community-stories) [ Developer Resources  Find resources
and get questions answered  ](https://pytorch.org/resources) [ Events  Find
events, webinars, and podcasts  ](https://pytorch.org/events) [ Forums  A
place to discuss PyTorch code, issues, install, research
](https://discuss.pytorch.org/) [ Models (Beta)  Discover, publish, and reuse
pre-trained models  ](https://pytorch.org/hub)

  * [ GitHub ](https://github.com/pytorch/pytorch)

Table of Contents

[ 2.3 ▼ ](https://pytorch.org/docs/versions.html)

Community

  * [ PyTorch Governance | Build + CI ](community/build_ci_governance.html)
  * [ PyTorch Contribution Guide ](community/contribution_guide.html)
  * [ PyTorch Design Philosophy ](community/design.html)
  * [ PyTorch Governance | Mechanics ](community/governance.html)
  * [ PyTorch Governance | Maintainers ](community/persons_of_interest.html)

Developer Notes

  * [ CUDA Automatic Mixed Precision examples ](notes/amp_examples.html)
  * [ Autograd mechanics ](notes/autograd.html)
  * [ Broadcasting semantics ](notes/broadcasting.html)
  * [ CPU threading and TorchScript inference ](notes/cpu_threading_torchscript_inference.html)
  * [ CUDA semantics ](notes/cuda.html)
  * [ Distributed Data Parallel ](notes/ddp.html)
  * [ Extending PyTorch ](notes/extending.html)
  * [ Extending torch.func with autograd.Function ](notes/extending.func.html)
  * [ Frequently Asked Questions ](notes/faq.html)
  * [ FSDP Notes ](notes/fsdp.html)
  * [ Gradcheck mechanics ](notes/gradcheck.html)
  * [ HIP (ROCm) semantics ](notes/hip.html)
  * [ Features for large-scale deployments ](notes/large_scale_deployments.html)
  * [ Modules ](notes/modules.html)
  * [ MPS backend ](notes/mps.html)
  * [ Multiprocessing best practices ](notes/multiprocessing.html)
  * [ Numerical accuracy ](notes/numerical_accuracy.html)
  * [ Reproducibility ](notes/randomness.html)
  * [ Serialization semantics ](notes/serialization.html)
  * [ Windows FAQ ](notes/windows.html)

Language Bindings

  * [ C++ ](cpp_index.html)
  * [ Javadoc ](https://pytorch.org/javadoc/)
  * [ torch::deploy ](deploy.html)

Python API

  * [ torch ](torch.html)
  * [ torch.nn ](nn.html)
  * [ torch.nn.functional ](nn.functional.html)
  * [ torch.Tensor ](tensors.html)
  * [ Tensor Attributes ](tensor_attributes.html)
  * [ Tensor Views ](tensor_view.html)
  * [ torch.amp ](amp.html)
  * [ torch.autograd ](autograd.html)
  * [ torch.library ](library.html)
  * [ torch.cpu ](cpu.html)
  * [ torch.cuda ](cuda.html)
  * [ Understanding CUDA Memory Usage ](torch_cuda_memory.html)
  * [ Generating a Snapshot ](torch_cuda_memory.html#generating-a-snapshot)
  * [ Using the visualizer ](torch_