CINXE.COM

Introduction to PyTorch - YouTube Series — PyTorch Tutorials 2.5.0+cu124 documentation

<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"/> <meta content="width=device-width, initial-scale=1.0" name="viewport"/> <title>Introduction to PyTorch - YouTube Series — PyTorch Tutorials 2.5.0+cu124 documentation</title> <link href="../_static/css/theme.css" rel="stylesheet" type="text/css"/> <!-- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> --> <link href="../_static/pygments.css" rel="stylesheet" type="text/css"/> <link href="../_static/css/theme.css" rel="stylesheet" type="text/css"/> <link href="../_static/copybutton.css" rel="stylesheet" type="text/css"/> <link href="https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/katex.min.css" rel="stylesheet" type="text/css"/> <link href="../_static/katex-math.css" rel="stylesheet" type="text/css"/> <link href="../_static/sg_gallery.css" rel="stylesheet" type="text/css"/> <link href="../_static/sg_gallery-binder.css" rel="stylesheet" type="text/css"/> <link href="../_static/sg_gallery-dataframe.css" rel="stylesheet" type="text/css"/> <link href="../_static/sg_gallery-rendered-html.css" rel="stylesheet" type="text/css"/> <link href="../_static/sphinx-design.5ea377869091fd0449014c60fc090103.min.css" rel="stylesheet" type="text/css"/> <link href="https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.min.css" rel="stylesheet" type="text/css"/> <link href="../_static/css/custom.css" rel="stylesheet" type="text/css"/> <link href="../_static/css/custom2.css" rel="stylesheet" type="text/css"/> <link href="../genindex.html" rel="index" title="Index"/> <link href="../search.html" rel="search" title="Search"/> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-T8XT4PS');</script> <!-- End Google Tag Manager --> <script src="../_static/js/modernizr.min.js"></script> <!-- Preload the theme fonts --> <link as="font" crossorigin="anonymous" href="../_static/fonts/FreightSans/freight-sans-book.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="../_static/fonts/FreightSans/freight-sans-medium.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="../_static/fonts/IBMPlexMono/IBMPlexMono-Medium.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="../_static/fonts/FreightSans/freight-sans-bold.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="../_static/fonts/FreightSans/freight-sans-medium-italic.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="../_static/fonts/IBMPlexMono/IBMPlexMono-SemiBold.woff2" rel="preload" type="font/woff2"/> <!-- Preload the katex fonts --> <link as="font" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Math-Italic.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Main-Regular.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Main-Bold.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size1-Regular.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size4-Regular.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size2-Regular.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Size3-Regular.woff2" rel="preload" type="font/woff2"/> <link as="font" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2" rel="preload" type="font/woff2"/> <link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css" integrity="sha384-vSIIfh2YWi9wW0r9iZe7RJPrKwp6bG+s9QZMoITbCckVJqGCCRhc+ccxNcdpHuYu" rel="stylesheet"/> </head> <div class="container-fluid header-holder tutorials-header" id="header-holder"> <div class="container"> <div class="header-container"> <a aria-label="PyTorch" class="header-logo" href="https://pytorch.org/"></a> <div class="main-menu"> <ul> <li class="main-menu-item"> <div class="resources-dropdown" data-toggle="resources-dropdown" id="resourcesDropdownButton"> <a class="with-down-arrow"> Learn </a> <div class="resources-dropdown-menu"> <a class="nav-dropdown-item" href="https://pytorch.org/get-started"> <span class="dropdown-title">Get Started</span> <p>Run PyTorch locally or get started quickly with one of the supported cloud platforms</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/tutorials"> <span class="dropdown-title">Tutorials</span> <p>Whats new in PyTorch tutorials</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/tutorials/beginner/basics/intro.html"> <span class="dropdown-title">Learn the Basics</span> <p>Familiarize yourself with PyTorch concepts and modules</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/tutorials/recipes/recipes_index.html"> <span class="dropdown-title">PyTorch Recipes</span> <p>Bite-size, ready-to-deploy PyTorch code examples</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/tutorials/beginner/introyt.html"> <span class="dropdown-title">Intro to PyTorch - YouTube Series</span> <p>Master PyTorch basics with our engaging YouTube tutorial series</p> </a> </div> </div> </li> <li> <div class="resources-dropdown" data-toggle="resources-dropdown" id="resourcesDropdownButton"> <a class="with-down-arrow"> Ecosystem </a> <div class="resources-dropdown-menu"> <a class="nav-dropdown-item" href="https://pytorch.org/ecosystem"> <span class="dropdown-title">Tools</span> <p>Learn about the tools and frameworks in the PyTorch Ecosystem</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/#community-module"> <span class="dropdown-title">Community</span> <p>Join the PyTorch developer community to contribute, learn, and get your questions answered</p> </a> <a class="nav-dropdown-item" href="https://discuss.pytorch.org/" target="_blank"> <span class="dropdown-title">Forums</span> <p>A place to discuss PyTorch code, issues, install, research</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/resources"> <span class="dropdown-title">Developer Resources</span> <p>Find resources and get questions answered</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/ecosystem/contributor-awards-2023"> <span class="dropdown-title">Contributor Awards - 2023</span> <p>Award winners announced at this year's PyTorch Conference</p> </a> </div> </div> </li> <li> <div class="resources-dropdown" data-toggle="resources-dropdown" id="resourcesDropdownButton"> <a class="with-down-arrow"> Edge </a> <div class="resources-dropdown-menu"> <a class="nav-dropdown-item" href="https://pytorch.org/edge"> <span class="dropdown-title">About PyTorch Edge</span> <p>Build innovative and privacy-aware AI experiences for edge devices</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/executorch-overview"> <span class="dropdown-title">ExecuTorch</span> <p>End-to-end solution for enabling on-device inference capabilities across mobile and edge devices</p> </a> </div> </div> </li> <li class="main-menu-item"> <div class="resources-dropdown" data-toggle="resources-dropdown" id="resourcesDropdownButton"> <a class="with-down-arrow"> Docs </a> <div class="resources-dropdown-menu"> <a class="nav-dropdown-item" href="https://pytorch.org/docs/stable/index.html"> <span class="dropdown-title">PyTorch</span> <p>Explore the documentation for comprehensive guidance on how to use PyTorch</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/pytorch-domains"> <span class="dropdown-title">PyTorch Domains</span> <p>Read the PyTorch Domains documentation to learn more about domain-specific libraries</p> </a> </div> </div> </li> <li> <div class="resources-dropdown" data-toggle="resources-dropdown" id="resourcesDropdownButton"> <a class="with-down-arrow"> Blogs &amp; News </a> <div class="resources-dropdown-menu"> <a class="nav-dropdown-item" href="https://pytorch.org/blog/"> <span class="dropdown-title">PyTorch Blog</span> <p>Catch up on the latest technical news and happenings</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/community-blog"> <span class="dropdown-title">Community Blog</span> <p>Stories from the PyTorch ecosystem</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/videos"> <span class="dropdown-title">Videos</span> <p>Learn about the latest PyTorch tutorials, new, and more </p> <a class="nav-dropdown-item" href="https://pytorch.org/community-stories"> <span class="dropdown-title">Community Stories</span> <p>Learn how our community solves real, everyday machine learning problems with PyTorch</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/events"> <span class="dropdown-title">Events</span> <p>Find events, webinars, and podcasts</p> </a> </a></div> </div></li> <li> <div class="resources-dropdown" data-toggle="resources-dropdown" id="resourcesDropdownButton"> <a class="with-down-arrow"> About </a> <div class="resources-dropdown-menu"> <a class="nav-dropdown-item" href="https://pytorch.org/foundation"> <span class="dropdown-title">PyTorch Foundation</span> <p>Learn more about the PyTorch Foundation</p> </a> <a class="nav-dropdown-item" href="https://pytorch.org/governing-board"> <span class="dropdown-title">Governing Board</span> <p></p> </a> </div> </div> </li> <li class="main-menu-item"> <div class="no-dropdown"> <a data-cta="join" href="https://pytorch.org/join"> Become a Member </a> </div> </li> <li> <div class="main-menu-item"> <a class="github-icon" href="https://github.com/pytorch/pytorch"> </a> </div> </li> <!--- TODO: This block adds the search icon to the nav bar. We will enable it later. <li> <div class="main-menu-item"> <a href="https://github.com/pytorch/pytorch" class="search-icon"> </a> </div> </li> ---> </ul> </div> <a class="main-menu-open-button" data-behavior="open-mobile-menu" href="#"></a> </div> </div> </div> <body class="pytorch-body"> <div class="table-of-contents-link-wrapper"> <span>Table of Contents</span> <a class="toggle-table-of-contents" data-behavior="toggle-table-of-contents" href="#"></a> </div> <nav class="pytorch-left-menu" data-toggle="wy-nav-shift" id="pytorch-left-menu"> <div class="pytorch-side-scroll"> <div aria-label="main navigation" class="pytorch-menu pytorch-menu-vertical" data-spy="affix" role="navigation"> <div class="pytorch-left-menu-search"> <div class="version"> 2.5.0+cu124 </div> <!-- Search box --> <div id="searchBox"> <div class="searchbox" id="googleSearchBox"> <script async="" src="https://cse.google.com/cse.js?cx=e65585f8c3ea1440e"></script> <div class="gcse-search"></div> </div> <div id="sphinxSearchBox" style="display: none;"> <div role="search"> <form action="../search.html" class="wy-form" id="rtd-search-form" method="get"> <input name="q" placeholder="Search Docs" type="text"/> <input name="check_keywords" type="hidden" value="yes"/> <input name="area" type="hidden" value="default"/> </form> </div> </div> </div> <form id="searchForm"> <label style="margin-bottom: 1rem"> <input checked="" name="searchType" type="radio" value="google"/> Google Search </label> <label style="margin-bottom: 1rem"> <input name="searchType" type="radio" value="sphinx"/> Classic Search </label> </form> <script> document.addEventListener('DOMContentLoaded', function() { const searchForm = document.getElementById('searchForm'); const googleSearchBox = document.getElementById('googleSearchBox'); const sphinxSearchBox = document.getElementById('sphinxSearchBox'); // Function to toggle search box visibility function toggleSearchBox(searchType) { googleSearchBox.style.display = searchType === 'google' ? 'block' : 'none'; sphinxSearchBox.style.display = searchType === 'sphinx' ? 'block' : 'none'; } // Determine the default search type let defaultSearchType = 'google'; if (window.location.href.startsWith('https://docs-preview.pytorch.org/')) { defaultSearchType = 'sphinx'; } else { defaultSearchType = localStorage.getItem('searchType') || 'google'; } // Set the default search type document.querySelector(`input[name="searchType"][value="${defaultSearchType}"]`).checked = true; toggleSearchBox(defaultSearchType); // Event listener for changes in search type searchForm.addEventListener('change', function(event) { const selectedSearchType = event.target.value; localStorage.setItem('searchType', selectedSearchType); toggleSearchBox(selectedSearchType); }); // Set placeholder text for Google search box window.onload = function() { var placeholderText = "Search Docs"; var googleSearchboxText = document.querySelector("#gsc-i-id1"); if (googleSearchboxText) { googleSearchboxText.placeholder = placeholderText; googleSearchboxText.style.fontFamily = 'FreightSans'; googleSearchboxText.style.fontSize = "1.2rem"; googleSearchboxText.style.color = '#262626'; } }; }); </script> </div> <p class="caption" role="heading"><span class="caption-text">PyTorch Recipes</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../recipes/recipes_index.html">See All Recipes</a></li> <li class="toctree-l1"><a class="reference internal" href="../prototype/prototype_index.html">See All Prototype Recipes</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Introduction to PyTorch</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="basics/intro.html">Learn the Basics</a><ul> <li class="toctree-l2"><a class="reference internal" href="basics/quickstart_tutorial.html">Quickstart</a></li> <li class="toctree-l2"><a class="reference internal" href="basics/tensorqs_tutorial.html">Tensors</a></li> <li class="toctree-l2"><a class="reference internal" href="basics/data_tutorial.html">Datasets &amp; DataLoaders</a></li> <li class="toctree-l2"><a class="reference internal" href="basics/transforms_tutorial.html">Transforms</a></li> <li class="toctree-l2"><a class="reference internal" href="basics/buildmodel_tutorial.html">Build the Neural Network</a></li> <li class="toctree-l2"><a class="reference internal" href="basics/autogradqs_tutorial.html">Automatic Differentiation with <code class="docutils literal notranslate"><span class="pre">torch.autograd</span></code></a></li> <li class="toctree-l2"><a class="reference internal" href="basics/optimization_tutorial.html">Optimizing Model Parameters</a></li> <li class="toctree-l2"><a class="reference internal" href="basics/saveloadrun_tutorial.html">Save and Load the Model</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="introyt/introyt_index.html">Introduction to PyTorch - YouTube Series</a><ul> <li class="toctree-l2"><a class="reference internal" href="introyt/introyt1_tutorial.html">Introduction to PyTorch</a></li> <li class="toctree-l2"><a class="reference internal" href="introyt/tensors_deeper_tutorial.html">Introduction to PyTorch Tensors</a></li> <li class="toctree-l2"><a class="reference internal" href="introyt/autogradyt_tutorial.html">The Fundamentals of Autograd</a></li> <li class="toctree-l2"><a class="reference internal" href="introyt/modelsyt_tutorial.html">Building Models with PyTorch</a></li> <li class="toctree-l2"><a class="reference internal" href="introyt/tensorboardyt_tutorial.html">PyTorch TensorBoard Support</a></li> <li class="toctree-l2"><a class="reference internal" href="introyt/trainingyt.html">Training with PyTorch</a></li> <li class="toctree-l2"><a class="reference internal" href="introyt/captumyt.html">Model Understanding with Captum</a></li> </ul> </li> </ul> <p class="caption" role="heading"><span class="caption-text">Learning PyTorch</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="deep_learning_60min_blitz.html">Deep Learning with PyTorch: A 60 Minute Blitz</a></li> <li class="toctree-l1"><a class="reference internal" href="pytorch_with_examples.html">Learning PyTorch with Examples</a></li> <li class="toctree-l1"><a class="reference internal" href="nn_tutorial.html">What is <cite>torch.nn</cite> <em>really</em>?</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/nlp_from_scratch_index.html">NLP from Scratch</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/tensorboard_tutorial.html">Visualizing Models, Data, and Training with TensorBoard</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/pinmem_nonblock.html">A guide on good usage of <code class="docutils literal notranslate"><span class="pre">non_blocking</span></code> and <code class="docutils literal notranslate"><span class="pre">pin_memory()</span></code> in PyTorch</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Image and Video</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../intermediate/torchvision_tutorial.html">TorchVision Object Detection Finetuning Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="transfer_learning_tutorial.html">Transfer Learning for Computer Vision Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="fgsm_tutorial.html">Adversarial Example Generation</a></li> <li class="toctree-l1"><a class="reference internal" href="dcgan_faces_tutorial.html">DCGAN Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/spatial_transformer_tutorial.html">Spatial Transformer Networks Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="vt_tutorial.html">Optimizing Vision Transformer Model for Deployment</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/tiatoolbox_tutorial.html">Whole Slide Image Classification Using PyTorch and TIAToolbox</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Audio</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="audio_io_tutorial.html">Audio I/O</a></li> <li class="toctree-l1"><a class="reference internal" href="audio_resampling_tutorial.html">Audio Resampling</a></li> <li class="toctree-l1"><a class="reference internal" href="audio_data_augmentation_tutorial.html">Audio Data Augmentation</a></li> <li class="toctree-l1"><a class="reference internal" href="audio_feature_extractions_tutorial.html">Audio Feature Extractions</a></li> <li class="toctree-l1"><a class="reference internal" href="audio_feature_augmentation_tutorial.html">Audio Feature Augmentation</a></li> <li class="toctree-l1"><a class="reference internal" href="audio_datasets_tutorial.html">Audio Datasets</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/speech_recognition_pipeline_tutorial.html">Speech Recognition with Wav2Vec2</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/text_to_speech_with_torchaudio.html">Text-to-speech with Tacotron2</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/forced_alignment_with_torchaudio_tutorial.html">Forced Alignment with Wav2Vec2</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Backends</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="onnx/intro_onnx.html">Introduction to ONNX</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Reinforcement Learning</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../intermediate/reinforcement_q_learning.html">Reinforcement Learning (DQN) Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/reinforcement_ppo.html">Reinforcement Learning (PPO) with TorchRL Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/mario_rl_tutorial.html">Train a Mario-playing RL Agent</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/pendulum.html">Pendulum: Writing your environment and transforms with TorchRL</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Deploying PyTorch Models in Production</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="onnx/intro_onnx.html">Introduction to ONNX</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/flask_rest_api_tutorial.html">Deploying PyTorch in Python via a REST API with Flask</a></li> <li class="toctree-l1"><a class="reference internal" href="Intro_to_TorchScript_tutorial.html">Introduction to TorchScript</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/cpp_export.html">Loading a TorchScript Model in C++</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/super_resolution_with_onnxruntime.html">(optional) Exporting a Model from PyTorch to ONNX and Running it using ONNX Runtime</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/realtime_rpi.html">Real Time Inference on Raspberry Pi 4 (30 fps!)</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Profiling PyTorch</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="profiler.html">Profiling your PyTorch Module</a></li> <li class="toctree-l1"><a class="reference internal" href="hta_intro_tutorial.html">Introduction to Holistic Trace Analysis</a></li> <li class="toctree-l1"><a class="reference internal" href="hta_trace_diff_tutorial.html">Trace Diff using Holistic Trace Analysis</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Code Transforms with FX</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../intermediate/fx_conv_bn_fuser.html">(beta) Building a Convolution/Batch Norm fuser in FX</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/fx_profiling_tutorial.html">(beta) Building a Simple CPU Performance Profiler with FX</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Frontend APIs</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../intermediate/memory_format_tutorial.html">(beta) Channels Last Memory Format in PyTorch</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/forward_ad_usage.html">Forward-mode Automatic Differentiation (Beta)</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/jacobians_hessians.html">Jacobians, Hessians, hvp, vhp, and more: composing function transforms</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/ensembling.html">Model ensembling</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/per_sample_grads.html">Per-sample-gradients</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/cpp_frontend.html">Using the PyTorch C++ Frontend</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/torch-script-parallelism.html">Dynamic Parallelism in TorchScript</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/cpp_autograd.html">Autograd in C++ Frontend</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Extending PyTorch</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../advanced/custom_ops_landing_page.html">PyTorch Custom Operators</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/python_custom_ops.html">Python Custom Operators</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/cpp_custom_ops.html">Custom C++ and CUDA Operators</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/custom_function_double_backward_tutorial.html">Double Backward with Custom Functions</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/custom_function_conv_bn_tutorial.html">Fusing Convolution and Batch Norm using Custom Function</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/cpp_extension.html">Custom C++ and CUDA Extensions</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/torch_script_custom_ops.html">Extending TorchScript with Custom C++ Operators</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/torch_script_custom_classes.html">Extending TorchScript with Custom C++ Classes</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/dispatcher.html">Registering a Dispatched Operator in C++</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/extend_dispatcher.html">Extending dispatcher for a new backend in C++</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/privateuseone.html">Facilitating New Backend Integration by PrivateUse1</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Model Optimization</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="profiler.html">Profiling your PyTorch Module</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/tensorboard_profiler_tutorial.html">PyTorch Profiler With TensorBoard</a></li> <li class="toctree-l1"><a class="reference internal" href="hyperparameter_tuning_tutorial.html">Hyperparameter tuning with Ray Tune</a></li> <li class="toctree-l1"><a class="reference internal" href="vt_tutorial.html">Optimizing Vision Transformer Model for Deployment</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/parametrizations.html">Parametrizations Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/pruning_tutorial.html">Pruning Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/dynamic_quantization_tutorial.html">(beta) Dynamic Quantization on an LSTM Word Language Model</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/dynamic_quantization_bert_tutorial.html">(beta) Dynamic Quantization on BERT</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/quantized_transfer_learning_tutorial.html">(beta) Quantized Transfer Learning for Computer Vision Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/static_quantization_tutorial.html">(beta) Static Quantization with Eager Mode in PyTorch</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/torchserve_with_ipex.html">Grokking PyTorch Intel CPU performance from first principles</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/torchserve_with_ipex_2.html">Grokking PyTorch Intel CPU performance from first principles (Part 2)</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/nvfuser_intro_tutorial.html">Getting Started - Accelerate Your Scripts with nvFuser</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/ax_multiobjective_nas_tutorial.html">Multi-Objective NAS with Ax</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/torch_compile_tutorial.html">Introduction to <code class="docutils literal notranslate"><span class="pre">torch.compile</span></code></a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/compiled_autograd_tutorial.html">Compiled Autograd: Capturing a larger backward graph for <code class="docutils literal notranslate"><span class="pre">torch.compile</span></code></a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/inductor_debug_cpu.html">Inductor CPU backend debugging and profiling</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/scaled_dot_product_attention_tutorial.html">(Beta) Implementing High-Performance Transformers with Scaled Dot Product Attention (SDPA)</a></li> <li class="toctree-l1"><a class="reference internal" href="knowledge_distillation_tutorial.html">Knowledge Distillation Tutorial</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Parallel and Distributed Training</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../distributed/home.html">Distributed and Parallel Training Tutorials</a></li> <li class="toctree-l1"><a class="reference internal" href="dist_overview.html">PyTorch Distributed Overview</a></li> <li class="toctree-l1"><a class="reference internal" href="ddp_series_intro.html">Distributed Data Parallel in PyTorch - Video Tutorials</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/model_parallel_tutorial.html">Single-Machine Model Parallel Best Practices</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/ddp_tutorial.html">Getting Started with Distributed Data Parallel</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/dist_tuto.html">Writing Distributed Applications with PyTorch</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/FSDP_tutorial.html">Getting Started with Fully Sharded Data Parallel(FSDP)</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/FSDP_advanced_tutorial.html">Advanced Model Training with Fully Sharded Data Parallel (FSDP)</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/TCPStore_libuv_backend.html">Introduction to Libuv TCPStore Backend</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/TP_tutorial.html">Large Scale Transformer model training with Tensor Parallel (TP)</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/pipelining_tutorial.html">Introduction to Distributed Pipeline Parallelism</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/process_group_cpp_extension_tutorial.html">Customize Process Group Backends Using Cpp Extensions</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/rpc_tutorial.html">Getting Started with Distributed RPC Framework</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/rpc_param_server_tutorial.html">Implementing a Parameter Server Using Distributed RPC Framework</a></li> <li class="toctree-l1"><a class="reference internal" href="../intermediate/rpc_async_execution.html">Implementing Batch RPC Processing Using Asynchronous Executions</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/rpc_ddp_tutorial.html">Combining Distributed DataParallel with Distributed RPC Framework</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/generic_join.html">Distributed Training with Uneven Inputs Using the Join Context Manager</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Edge with ExecuTorch</span></p> <ul> <li class="toctree-l1"><a class="reference external" href="https://pytorch.org/executorch/stable/tutorials/export-to-executorch-tutorial.html">Exporting to ExecuTorch Tutorial</a></li> <li class="toctree-l1"><a class="reference external" href=" https://pytorch.org/executorch/stable/running-a-model-cpp-tutorial.html">Running an ExecuTorch Model in C++ Tutorial</a></li> <li class="toctree-l1"><a class="reference external" href="https://pytorch.org/executorch/stable/tutorials/sdk-integration-tutorial.html">Using the ExecuTorch SDK to Profile a Model</a></li> <li class="toctree-l1"><a class="reference external" href="https://pytorch.org/executorch/stable/demo-apps-ios.html">Building an ExecuTorch iOS Demo App</a></li> <li class="toctree-l1"><a class="reference external" href="https://pytorch.org/executorch/stable/demo-apps-android.html">Building an ExecuTorch Android Demo App</a></li> <li class="toctree-l1"><a class="reference external" href="https://pytorch.org/executorch/stable/examples-end-to-end-to-lower-model-to-delegate.html">Lowering a Model as a Delegate</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Recommendation Systems</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../intermediate/torchrec_intro_tutorial.html">Introduction to TorchRec</a></li> <li class="toctree-l1"><a class="reference internal" href="../advanced/sharding.html">Exploring TorchRec sharding</a></li> </ul> <p class="caption" role="heading"><span class="caption-text">Multimodality</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="flava_finetuning_tutorial.html">TorchMultimodal Tutorial: Finetuning FLAVA</a></li> </ul> </div> </div> </nav> <div class="pytorch-container"> <div class="pytorch-page-level-bar" id="pytorch-page-level-bar"> <div class="pytorch-breadcrumbs-wrapper"> <div aria-label="breadcrumbs navigation" role="navigation"> <ul class="pytorch-breadcrumbs"> <li> <a href="../index.html"> Tutorials </a> &gt; </li> <li>Introduction to PyTorch - YouTube Series</li> <li class="pytorch-breadcrumbs-aside"> <a href="../_sources/beginner/introyt.rst.txt" rel="nofollow"><img src="../_static/images/view-page-source-icon.svg"/></a> </li> </ul> </div> </div> <div class="pytorch-shortcuts-wrapper" id="pytorch-shortcuts-wrapper"> Shortcuts </div> </div> <section class="pytorch-content-wrap" data-toggle="wy-nav-shift" id="pytorch-content-wrap"> <div class="pytorch-content-left"> <div class="pytorch-call-to-action-links"> <div id="tutorial-type">beginner/introyt</div> <div id="google-colab-link"> <img class="call-to-action-img" src="../_static/images/pytorch-colab.svg"> <div class="call-to-action-desktop-view">Run in Google Colab</div> <div class="call-to-action-mobile-view">Colab</div> </img></div> <div id="download-notebook-link"> <img class="call-to-action-notebook-img" src="../_static/images/pytorch-download.svg"/> <div class="call-to-action-desktop-view">Download Notebook</div> <div class="call-to-action-mobile-view">Notebook</div> </div> <div id="github-view-link"> <img class="call-to-action-img" src="../_static/images/pytorch-github.svg"/> <div class="call-to-action-desktop-view">View on GitHub</div> <div class="call-to-action-mobile-view">GitHub</div> </div> </div> <!-- Google Tag Manager (noscript) --> <noscript><iframe height="0" src="https://www.googletagmanager.com/ns.html?id=GTM-T8XT4PS" style="display:none;visibility:hidden" width="0"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div class="rst-content"> <div class="main-content" itemscope="itemscope" itemtype="http://schema.org/Article" role="main"> <article class="pytorch-article" id="pytorch-article" itemprop="articleBody"> <div class="section" id="introduction-to-pytorch-youtube-series"> <h1>Introduction to PyTorch - YouTube Series<a class="headerlink" href="#introduction-to-pytorch-youtube-series" title="Permalink to this heading">¶</a></h1> <p>This page has been moved.</p> <p>Redirecting now…</p> <meta content="0; url='https://pytorch.org/tutorials/beginner/introyt/introyt_index.html'" http-equiv="Refresh"/></div> </article> </div> <footer> <hr class="rating-hr hr-top"/> <div class="rating-container"> <div class="rating-prompt">Rate this Tutorial</div> <div class="stars-outer"> <i class="far fa-star" data-behavior="tutorial-rating" data-count="1" title="1 Star"></i> <i class="far fa-star" data-behavior="tutorial-rating" data-count="2" title="2 Stars"></i> <i class="far fa-star" data-behavior="tutorial-rating" data-count="3" title="3 Stars"></i> <i class="far fa-star" data-behavior="tutorial-rating" data-count="4" title="4 Stars"></i> <i class="far fa-star" data-behavior="tutorial-rating" data-count="5" title="5 Stars"></i> </div> </div> <hr class="rating-hr hr-bottom"> <div role="contentinfo"> <p> © Copyright 2024, PyTorch. </p> </div> <div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </div> </hr></footer> </div> <script> if((window.location.href.indexOf("/prototype/")!= -1) && (window.location.href.indexOf("/prototype/prototype_index")< 1)) { var div = '<div class="admonition note"><p class="admonition-title">Note</p><p><i class="fa fa-flask" aria-hidden="true">&nbsp</i> This tutorial describes a prototype feature. Prototype features are typically not available as part of binary distributions like PyPI or Conda, except sometimes behind run-time flags, and are at an early stage for feedback and testing.</p></div>' document.getElementById("pytorch-article").insertAdjacentHTML('afterBegin', div) } </script> </div> <div class="pytorch-content-right" id="pytorch-content-right"> <div class="pytorch-right-menu" id="pytorch-right-menu"> <div class="pytorch-side-scroll" id="pytorch-side-scroll-right"> <ul> <li><a class="reference internal" href="#">Introduction to PyTorch - YouTube Series</a></li> </ul> </div> </div> </div> </section> </div> <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js" type="text/javascript"></script> <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="../_static/doctools.js"></script> <script src="../_static/clipboard.min.js"></script> <script src="../_static/copybutton.js"></script> <script src="../_static/katex.min.js"></script> <script src="../_static/auto-render.min.js"></script> <script src="../_static/katex_autorenderer.js"></script> <script src="../_static/design-tabs.js"></script> <script src="../_static/js/custom.js"></script> <script src="../_static/js/vendor/popper.min.js" type="text/javascript"></script> <script src="../_static/js/vendor/bootstrap.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script> <script src="../_static/js/theme.js" type="text/javascript"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> <script> // Helper function to make it easier to call dataLayer.push() function gtag(){window.dataLayer.push(arguments);} //add microsoft link if(window.location.href.indexOf("/beginner/basics/")!= -1) { var url="https://docs.microsoft.com/learn/paths/pytorch-fundamentals/?wt.mc_id=aiml-7486-cxa"; switch(window.location.pathname.split("/").pop().replace('.html','')) { case"quickstart_tutorial": url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/9-quickstart?WT.mc_id=aiml-7486-cxa"; break; case"tensorqs_tutorial": url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/2-tensors?WT.mc_id=aiml-7486-cxa"; break; case"data_tutorial": url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/3-data?WT.mc_id=aiml-7486-cxa"; break; case"transforms_tutorial": url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/4-transforms?WT.mc_id=aiml-7486-cxa"; break; case"buildmodel_tutorial": url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/5-model?WT.mc_id=aiml-7486-cxa"; break; case"autogradqs_tutorial": url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/6-autograd?WT.mc_id=aiml-7486-cxa"; break; case"optimization_tutorial": url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/7-optimization?WT.mc_id=aiml-7486-cxa"; break; case"saveloadrun_tutorial": url="https://docs.microsoft.com/learn/modules/intro-machine-learning-pytorch/8-inference?WT.mc_id=aiml-7486-cxa"; } $(".pytorch-call-to-action-links").children().first().before("<a href="+url+' data-behavior="call-to-action-event" data-response="Run in Microsoft Learn" target="_blank"><div id="microsoft-learn-link" style="padding-bottom: 0.625rem;border-bottom: 1px solid #f3f4f7;padding-right: 2.5rem;display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center;-ms-flex-align: center;align-items: center;"><img class="call-to-action-img" src="../../_static/images/microsoft-logo.svg"/><div class="call-to-action-desktop-view">Run in Microsoft Learn</div><div class="call-to-action-mobile-view">Learn</div></div></a>') } !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '243028289693773'); fbq('track', 'PageView'); $("[data-behavior='call-to-action-event']").on('click', function(){ fbq('trackCustom', "Download", { tutorialTitle: $('h1:first').text(), downloadLink: this.href, tutorialLink: window.location.href, downloadTitle: $(this).attr("data-response") }); gtag('event', 'click', { 'event_category': $(this).attr("data-response"), 'event_label': $("h1").first().text(), 'tutorial_link': window.location.href }); }); $("[data-behavior='tutorial-rating']").on('click', function(){ fbq('trackCustom', "Tutorial Rating", { tutorialLink: window.location.href, tutorialTitle: $('h1:first').text(), rating: $(this).attr("data-count") }); gtag('event', 'click', { 'event_category': 'Tutorial Rating', 'event_label': $("h1").first().text(), 'value': $(this).attr("data-count"), 'customEvent:Rating': $(this).attr("data-count") // send to GA custom dimension customEvent:Rating. }); }); if (location.pathname == "/") { $(".rating-container").hide(); $(".hr-bottom").hide(); } </script> <noscript> <img height="1" src="https://www.facebook.com/tr?id=243028289693773&amp;ev=PageView &amp;noscript=1" width="1"/> </noscript> <script type="text/javascript"> var collapsedSections = ['PyTorch Recipes', 'Learning PyTorch', 'Image and Video', 'Audio', 'Text', 'Backends', 'Reinforcement Learning', 'Deploying PyTorch Models in Production', 'Profiling PyTorch', 'Code Transforms with FX', 'Frontend APIs', 'Extending PyTorch', 'Model Optimization', 'Parallel and Distributed Training', 'Edge with ExecuTorch', 'Recommendation Systems', 'Multimodality']; </script> <img alt="" height="1" src="https://www.googleadservices.com/pagead/conversion/795629140/?label=txkmCPmdtosBENSssfsC&amp;guid=ON&amp;script=0" style="border-style:none;" width="1"/> <!-- Begin Footer --> <div class="container-fluid docs-tutorials-resources" id="docs-tutorials-resources"> <div class="container"> <div class="row"> <div class="col-md-4 text-center"> <h2>Docs</h2> <p>Access comprehensive developer documentation for PyTorch</p> <a class="with-right-arrow" href="https://pytorch.org/docs/stable/index.html">View Docs</a> </div> <div class="col-md-4 text-center"> <h2>Tutorials</h2> <p>Get in-depth tutorials for beginners and advanced developers</p> <a class="with-right-arrow" href="https://pytorch.org/tutorials">View Tutorials</a> </div> <div class="col-md-4 text-center"> <h2>Resources</h2> <p>Find development resources and get your questions answered</p> <a class="with-right-arrow" href="https://pytorch.org/resources">View Resources</a> </div> </div> </div> </div> <footer class="site-footer"> <div class="container footer-container"> <div class="footer-logo-wrapper"> <a class="footer-logo" href="https://pytorch.org/"></a> </div> <div class="footer-links-wrapper"> <div class="footer-links-col"> <ul> <li class="list-title"><a href="https://pytorch.org/">PyTorch</a></li> <li><a href="https://pytorch.org/get-started">Get Started</a></li> <li><a href="https://pytorch.org/features">Features</a></li> <li><a href="https://pytorch.org/ecosystem">Ecosystem</a></li> <li><a href="https://pytorch.org/blog/">Blog</a></li> <li><a href="https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md">Contributing</a></li> </ul> </div> <div class="footer-links-col"> <ul> <li class="list-title"><a href="https://pytorch.org/resources">Resources</a></li> <li><a href="https://pytorch.org/tutorials">Tutorials</a></li> <li><a href="https://pytorch.org/docs/stable/index.html">Docs</a></li> <li><a href="https://discuss.pytorch.org" target="_blank">Discuss</a></li> <li><a href="https://github.com/pytorch/pytorch/issues" target="_blank">Github Issues</a></li> <li><a href="https://pytorch.org/assets/brand-guidelines/PyTorch-Brand-Guidelines.pdf" target="_blank">Brand Guidelines</a></li> </ul> </div> <div class="footer-links-col"> <ul> <li class="list-title">Stay up to date</li> <li><a href="https://www.facebook.com/pytorch" target="_blank">Facebook</a></li> <li><a href="https://twitter.com/pytorch" target="_blank">Twitter</a></li> <li><a href="https://www.youtube.com/pytorch" target="_blank">YouTube</a></li> <li><a href="https://www.linkedin.com/company/pytorch" target="_blank">LinkedIn</a></li> </ul> </div> <div class="footer-links-col"> <ul> <li class="list-title">PyTorch Podcasts</li> <li><a href="https://open.spotify.com/show/6UzHKeiy368jKfQMKKvJY5" target="_blank">Spotify</a></li> <li><a href="https://podcasts.apple.com/us/podcast/pytorch-developer-podcast/id1566080008" target="_blank">Apple</a></li> <li><a href="https://www.google.com/podcasts?feed=aHR0cHM6Ly9mZWVkcy5zaW1wbGVjYXN0LmNvbS9PQjVGa0lsOA%3D%3D" target="_blank">Google</a></li> <li><a href="https://music.amazon.com/podcasts/7a4e6f0e-26c2-49e9-a478-41bd244197d0/PyTorch-Developer-Podcast?" target="_blank">Amazon</a></li> </ul> </div> </div> <div class="privacy-policy"> <ul> <li class="privacy-policy-links"><a href="https://www.linuxfoundation.org/terms/" target="_blank">Terms</a></li> <li class="privacy-policy-links">|</li> <li class="privacy-policy-links"><a href="https://www.linuxfoundation.org/privacy-policy/" target="_blank">Privacy</a></li> </ul> </div> <div class="copyright"> <p>© Copyright The Linux Foundation. The PyTorch Foundation is a project of The Linux Foundation. For web site terms of use, trademark policy and other policies applicable to The PyTorch Foundation please see <a href="https://www.linuxfoundation.org/policies/">www.linuxfoundation.org/policies/</a>. The PyTorch Foundation supports the PyTorch open source project, which has been established as PyTorch Project a Series of LF Projects, LLC. For policies applicable to the PyTorch Project a Series of LF Projects, LLC, please see <a href="https://www.lfprojects.org/policies/">www.lfprojects.org/policies/</a>.</p> </div> </div> </footer> <div class="cookie-banner-wrapper"> <div class="container"> <p class="gdpr-notice">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: <a href="https://www.facebook.com/policies/cookies/">Cookies Policy</a>.</p> <img class="close-button" src="../_static/images/pytorch-x.svg"/> </div> </div> <!-- End Footer --> <!-- Begin Mobile Menu --> <div class="mobile-main-menu"> <div class="container-fluid"> <div class="container"> <div class="mobile-main-menu-header-container"> <a aria-label="PyTorch" class="header-logo" href="https://pytorch.org/"></a> <a class="main-menu-close-button" data-behavior="close-mobile-menu" href="#"></a> </div> </div> </div> <div class="mobile-main-menu-links-container"> <div class="main-menu"> <ul> <li class="resources-mobile-menu-title"> <a>Learn</a> </li> <ul class="resources-mobile-menu-items"> <li> <a href="https://pytorch.org/get-started">Get Started</a> </li> <li> <a href="https://pytorch.org/tutorials">Tutorials</a> </li> <li> <a href="https://pytorch.org/tutorials/beginner/basics/intro.html">Learn the Basics</a> </li> <li> <a href="https://pytorch.org/tutorials/recipes/recipes_index.html">PyTorch Recipes</a> </li> <li> <a href="https://pytorch.org/tutorials/beginner/introyt.html">Introduction to PyTorch - YouTube Series</a> </li> </ul> <li class="resources-mobile-menu-title"> <a>Ecosystem</a> </li> <ul class="resources-mobile-menu-items"> <li> <a href="https://pytorch.org/ecosystem">Tools</a> </li> <li> <a href="https://pytorch.org/#community-module">Community</a> </li> <li> <a href="https://discuss.pytorch.org/">Forums</a> </li> <li> <a href="https://pytorch.org/resources">Developer Resources</a> </li> <li> <a href="https://pytorch.org/ecosystem/contributor-awards-2023">Contributor Awards - 2023</a> </li> </ul> <li class="resources-mobile-menu-title"> <a>Edge</a> </li> <ul class="resources-mobile-menu-items"> <li> <a href="https://pytorch.org/edge">About PyTorch Edge</a> </li> <li> <a href="https://pytorch.org/executorch-overview">ExecuTorch</a> </li> </ul> <li class="resources-mobile-menu-title"> <a>Docs</a> </li> <ul class="resources-mobile-menu-items"> <li> <a href="https://pytorch.org/docs/stable/index.html">PyTorch</a> </li> <li> <a href="https://pytorch.org/pytorch-domains">PyTorch Domains</a> </li> </ul> <li class="resources-mobile-menu-title"> <a>Blog &amp; News</a> </li> <ul class="resources-mobile-menu-items"> <li> <a href="https://pytorch.org/blog/">PyTorch Blog</a> </li> <li> <a href="https://pytorch.org/community-blog">Community Blog</a> </li> <li> <a href="https://pytorch.org/videos">Videos</a> </li> <li> <a href="https://pytorch.org/community-stories">Community Stories</a> </li> <li> <a href="https://pytorch.org/events">Events</a> </li> </ul> <li class="resources-mobile-menu-title"> <a>About</a> </li> <ul class="resources-mobile-menu-items"> <li> <a href="https://pytorch.org/foundation">PyTorch Foundation</a> </li> <li> <a href="https://pytorch.org/governing-board">Governing Board</a> </li> </ul> </ul> </div> </div> </div> <!-- End Mobile Menu --> <script src="../_static/js/vendor/anchor.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { mobileMenu.bind(); mobileTOC.bind(); pytorchAnchors.bind(); sideMenus.bind(); scrollToAnchor.bind(); highlightNavigation.bind(); mainMenuDropdown.bind(); filterTags.bind(); // Add class to links that have code blocks, since we cannot create links in code blocks $("article.pytorch-article a span.pre").each(function(e) { $(this).closest("a").addClass("has-code"); }); }) </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10