Use TorchRL to code a DDPG Loss  Reinforcement-
Learning  ![](_static/img/half_cheetah.gif) ](advanced/coding_ddpg.html)

#### [ Writing your environment and transforms  Use TorchRL to code a Pendulum
Reinforcement-Learning  ![](_static/img/pendulum.gif)
](advanced/pendulum.html)

#### [ Deploying PyTorch in Python via a REST API with Flask  Deploy a PyTorch
model using Flask and expose a REST API for model inference using the example
of a pretrained DenseNet 121 model which detects the image.  Production
![](_static/img/thumbnails/cropped/Deploying-PyTorch-in-Python-via-a-REST-API-
with-Flask.png) ](intermediate/flask_rest_api_tutorial.html)

#### [ Introduction to TorchScript  Introduction to TorchScript, an
intermediate representation of a PyTorch model (subclass of nn.Module) that
can then be run in a high-performance environment such as C++.
Production,TorchScript  ![](_static/img/thumbnails/cropped/Introduction-to-
TorchScript.png) ](beginner/Intro_to_TorchScript_tutorial.html)

#### [ Loading a TorchScript Model in C++  Learn how PyTorch provides to go
from an existing Python model to a serialized representation that can be
loaded and executed purely from C++, with no dependency on Python.
Production,TorchScript  ![](_static/img/thumbnails/cropped/Loading-a-
TorchScript-Model-in-Cpp.png) ](advanced/cpp_export.html)

#### [ (optional) Exporting a PyTorch Model to ONNX using TorchScript backend
and Running it using ONNX Runtime  Convert a model defined in PyTorch into the
ONNX format and then run it with ONNX Runtime.  Production,ONNX
![](_static/img/thumbnails/cropped/optional-Exporting-a-Model-from-PyTorch-to-
ONNX-and-Running-it-using-ONNX-Runtime.png)
](advanced/super_resolution_with_onnxruntime.html)

#### [ Profiling PyTorch  Learn how to profile a PyTorch application
Profiling  _static/img/thumbnails/default.png  ](beginner/profiler.html)

#### [ Profiling PyTorch  Introduction to Holistic Trace Analysis  Profiling
_static/img/thumbnails/default.png  ](beginner/hta_intro_tutorial.html)

#### [ Profiling PyTorch  Trace Diff using Holistic Trace Analysis  Profiling
_static/img/thumbnails/default.png  ](beginner/hta_trace_diff_tutorial.html)

#### [ Building a Convolution/Batch Norm fuser in FX  Build a simple FX pass
that fuses batch norm into convolution to improve performance during
inference.  FX  ![](_static/img/thumbnails/cropped/Deploying-PyTorch-in-
Python-via-a-REST-API-with-Flask.png) ](intermediate/fx_conv_bn_fuser.html)

#### [ Building a Simple Performance Profiler with FX  Build a simple FX
interpreter to record the runtime of op, module, and function calls and report
statistics  FX  ![](_static/img/thumbnails/cropped/Deploying-PyTorch-in-
Python-via-a-REST-API-with-Flask.png)
](intermediate/fx_profiling_tutorial.html)

#### [ (beta) Channels Last Memory Format in PyTorch  Get an overview of
Channels Last memory format and understand how it is used to order NCHW
tensors in memory preserving dimensions.  Memory-Format,Best-
Practice,Frontend-APIs  ![](_static/img/thumbnails/cropped/experimental-
Channels-Last-Memory-Format-in-PyTorch.png)
](intermediate/memory_format_tutorial.html)

#### [ Using the PyTorch C++ Frontend  Walk through an end-to-end example of
training a model with the C++ frontend by training a DCGAN – a kind of
generative model – to generate images of MNIST digits.  Frontend-APIs,C++
![](_static/img/thumbnails/cropped/Using-the-PyTorch-Cpp-Frontend.png)
](advanced/cpp_frontend.html)

#### [ Custom C++ and CUDA Extensions  Create a neural network layer with no
parameters using numpy. Then use scipy to create a neural network layer that
has learnable weights.  Extending-PyTorch,Frontend-APIs,C++,CUDA
![](_static/img/thumbnails/cropped/Custom-Cpp-and-CUDA-Extensions.png)
](advanced/cpp_extension.html)

#### [ Extending TorchScript with Custom C++ Operators  Implement a custom
TorchScript operator in C++, how to build it into a shared library, how to use
it in Python to define TorchScript mod