Skip to main content
Ctrl+K
PyTorch Sphinx Theme2 - Home
PyTorch Sphinx Theme2 - Home
  • Installation
  • Configuration
  • Changelog
  • Community
    • PyTorch Governance | Build + CI
    • PyTorch Contribution Guide
    • PyTorch Design Philosophy
    • PyTorch Governance | Mechanics
    • PyTorch Governance | Maintainers
  • More
    • Structural Elements
    • Paragraph Level Markup
    • Lists & Tables
    • test_py_module
    • Long Sticky Nav
    • Test Myst-NB cells
    • SD-Cards Test Page
    • IRs
    • Welcome to PyTorch Tutorials
    • Test Prototype Page
    • Unstable Test
    • PyTorch Glossary
Go to pytorch.org
Ctrl+K
  • X
  • GitHub
  • Discourse
  • PyPi
  • Installation
  • Configuration
  • Changelog
  • Community
    • PyTorch Governance | Build + CI
    • PyTorch Contribution Guide
    • PyTorch Design Philosophy
    • PyTorch Governance | Mechanics
    • PyTorch Governance | Maintainers
  • Structural Elements
  • Paragraph Level Markup
  • Lists & Tables
  • test_py_module
  • Long Sticky Nav
  • Test Myst-NB cells
  • SD-Cards Test Page
  • IRs
  • Welcome to PyTorch Tutorials
    • Sphinx Gallery Demo
  • Test Prototype Page
  • Unstable Test
  • PyTorch Glossary
Go to pytorch.org
Ctrl+K
  • X
  • GitHub
  • Discourse
  • PyPi

Section Navigation

  • Sphinx Gallery Demo
  • <no title>
Rate this Page
★ ★ ★ ★ ★
auto_examples/index
Run in Google Colab
Colab
Download Notebook
Notebook
View on GitHub
GitHub
Sphinx Gallery Demo

sphx_glr_auto_examples_example_demo.py

Sphinx Gallery Demo

Download all examples in Python source code: auto_examples_python.zip

Download all examples in Jupyter notebooks: auto_examples_jupyter.zip

Gallery generated by Sphinx-Gallery

Rate this Page
★ ★ ★ ★ ★

previous

Welcome to PyTorch Tutorials

next

Sphinx Gallery Demo

Built with the PyData Sphinx Theme 0.15.4.

previous

Welcome to PyTorch Tutorials

next

Sphinx Gallery Demo

Edit on GitHub
Show Source
PyTorch Libraries
  • ExecuTorch
  • Helion
  • torchao
  • kineto
  • torchtitan
  • TorchRL
  • torchvision
  • torchaudio
  • tensordict
  • PyTorch on XLA Devices

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources

Stay in touch for updates, event info, and the latest news

By submitting this form, I consent to receive marketing emails from the LF and its projects regarding their events, training, research, developments, and related announcements. I understand that I can unsubscribe at any time using the links in the footers of the emails I receive. Privacy Policy.

© PyTorch. Copyright © The Linux Foundation®. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For more information, including terms of use, privacy policy, and trademark usage, please see our Policies page. Trademark Usage. Privacy Policy.

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.

© Copyright PyTorch.

Created using Sphinx 7.2.6.

Built with the PyData Sphinx Theme 0.15.4.