Skip to content

Commit 9e5d67d

Browse files
authored
Merge pull request #942 from pytorch/jlin27_tutorials_refresh
(v2) Update Tutorials TOC
2 parents 23af056 + 513b8a5 commit 9e5d67d

File tree

3 files changed

+179
-34
lines changed

3 files changed

+179
-34
lines changed

index.rst

Lines changed: 137 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@ Image/Video
7676
:figure: /_static/img/dcgan_generator.png
7777
:description: :doc:`beginner/dcgan_faces_tutorial`
7878

79-
.. customgalleryitem::
80-
:tooltip: (experimental) Static Quantization with Eager Mode in PyTorch
81-
:figure: /_static/img/qat.png
82-
:description: :doc:`advanced/static_quantization_tutorial`
83-
84-
.. customgalleryitem::
85-
:tooltip: Perform quantized transfer learning with feature extractor
86-
:description: :doc:`/intermediate/quantized_transfer_learning_tutorial`
87-
:figure: /_static/img/quantized_transfer_learning.png
88-
8979

9080
.. raw:: html
9181

@@ -135,16 +125,6 @@ Text
135125
:figure: /_static/img/thumbnails/german_to_english_translation.png
136126
:description: :doc:`/beginner/torchtext_translation_tutorial`
137127

138-
.. customgalleryitem::
139-
:tooltip: Perform dynamic quantization on a pre-trained PyTorch model
140-
:description: :doc:`/advanced/dynamic_quantization_tutorial`
141-
:figure: _static/img/quant_asym.png
142-
143-
.. customgalleryitem::
144-
:tooltip: Convert a well-known state-of-the-art model like BERT into dynamic quantized model
145-
:description: :doc:`/intermediate/dynamic_quantization_bert_tutorial`
146-
:figure: /_static/img/bert.png
147-
148128
.. raw:: html
149129

150130
<div style='clear:both'></div>
@@ -161,24 +141,124 @@ Reinforcement Learning
161141

162142
<div style='clear:both'></div>
163143

164-
Additional APIs
144+
Deploying PyTorch Models in Production
145+
--------------------------------------
146+
147+
.. customgalleryitem::
148+
:tooltip: Deploying PyTorch and Building a REST API using Flask
149+
:description: :doc:`/intermediate/flask_rest_api_tutorial`
150+
:figure: _static/img/flask.png
151+
152+
.. customgalleryitem::
153+
:tooltip: Introduction to TorchScript
154+
:description: :doc:`beginner/Intro_to_TorchScript_tutorial`
155+
:figure: _static/img/torchscript.png
156+
157+
.. customgalleryitem::
158+
:tooltip: Loading a PyTorch model in C++
159+
:description: :doc:`advanced/cpp_export`
160+
:figure: _static/img/torchscript_to_cpp.png
161+
162+
.. customgalleryitem::
163+
:figure: /_static/img/cat.jpg
164+
:tooltip: Exporting a Model from PyTorch to ONNX and Running it using ONNXRuntime
165+
:description: :doc:`advanced/super_resolution_with_onnxruntime`
166+
167+
.. raw:: html
168+
169+
<div style='clear:both'></div>
170+
171+
Frontend APIs
165172
----------------------
173+
.. customgalleryitem::
174+
:figure: /_static/img/named_tensor.png
175+
:tooltip: Named Tensor
176+
:description: :doc:`intermediate/named_tensor_tutorial`
166177

167178
.. customgalleryitem::
168179
:tooltip: Using the PyTorch C++ Frontend
169180
:figure: /_static/img/cpp-pytorch.png
170181
:description: :doc:`advanced/cpp_frontend`
171182

172183
.. customgalleryitem::
173-
:figure: /_static/img/named_tensor.png
174-
:tooltip: Named Tensor
175-
:description: :doc:`intermediate/named_tensor_tutorial`
184+
:tooltip: Implement custom extensions in C++ or CUDA for eager PyTorch
185+
:description: :doc:`/advanced/cpp_extension`
186+
:figure: _static/img/cpp_logo.png
187+
188+
.. customgalleryitem::
189+
:tooltip: Implement custom operators in C++ or CUDA for TorchScript
190+
:description: :doc:`/advanced/torch_script_custom_ops`
191+
:figure: _static/img/cpp_logo.png
192+
193+
.. customgalleryitem::
194+
:tooltip: Implement custom classes in C++ for TorchScript
195+
:description: :doc:`/advanced/torch_script_custom_classes`
196+
:figure: _static/img/cpp_logo.png
197+
198+
.. raw:: html
199+
200+
<div style='clear:both'></div>
201+
202+
203+
Model Optimization
204+
---------------------------
176205

177206
.. customgalleryitem::
178207
:tooltip: Use pruning to sparsify your neural networks
179208
:description: :doc:`/intermediate/pruning_tutorial`
180209
:figure: _static/img/pruning.png
181210

211+
.. customgalleryitem::
212+
:tooltip: Perform dynamic quantization on a pre-trained PyTorch model
213+
:description: :doc:`/advanced/dynamic_quantization_tutorial`
214+
:figure: _static/img/quant_asym.png
215+
216+
.. customgalleryitem::
217+
:tooltip: Convert a well-known state-of-the-art model like BERT into dynamic quantized model
218+
:description: :doc:`/intermediate/dynamic_quantization_bert_tutorial`
219+
:figure: /_static/img/bert.png
220+
221+
.. customgalleryitem::
222+
:tooltip: (experimental) Static Quantization with Eager Mode in PyTorch
223+
:figure: /_static/img/qat.png
224+
:description: :doc:`advanced/static_quantization_tutorial`
225+
226+
.. customgalleryitem::
227+
:tooltip: Perform quantized transfer learning with feature extractor
228+
:description: :doc:`/intermediate/quantized_transfer_learning_tutorial`
229+
:figure: /_static/img/quantized_transfer_learning.png
230+
231+
.. raw:: html
232+
233+
<div style='clear:both'></div>
234+
235+
Parallel and Distributed Training
236+
---------------------------------
237+
238+
.. customgalleryitem::
239+
:tooltip: Model parallel training on multiple GPUs
240+
:description: :doc:`/intermediate/model_parallel_tutorial`
241+
:figure: _static/img/distributed/DistPyTorch.jpg
242+
243+
.. customgalleryitem::
244+
:tooltip: Getting started with DistributedDataParallel
245+
:description: :doc:`/intermediate/ddp_tutorial`
246+
:figure: _static/img/distributed/DistPyTorch.jpg
247+
248+
.. customgalleryitem::
249+
:tooltip: Parallelize computations across processes and clusters of machines
250+
:description: :doc:`/intermediate/dist_tuto`
251+
:figure: _static/img/distributed/DistPyTorch.jpg
252+
253+
.. customgalleryitem::
254+
:tooltip: Getting Started with Distributed RPC Framework
255+
:description: :doc:`/intermediate/rpc_tutorial`
256+
:figure: _static/img/distributed/DistPyTorch.jpg
257+
258+
.. customgalleryitem::
259+
:tooltip: PyTorch distributed trainer with Amazon AWS
260+
:description: :doc:`/beginner/aws_distributed_training_tutorial`
261+
:figure: _static/img/distributed/DistPyTorch.jpg
182262

183263
.. raw:: html
184264

@@ -209,8 +289,6 @@ Additional APIs
209289
beginner/transfer_learning_tutorial
210290
beginner/fgsm_tutorial
211291
beginner/dcgan_faces_tutorial
212-
advanced/static_quantization_tutorial
213-
intermediate/quantized_transfer_learning_tutorial
214292

215293
.. toctree::
216294
:maxdepth: 2
@@ -232,8 +310,7 @@ Additional APIs
232310
intermediate/seq2seq_translation_tutorial
233311
beginner/text_sentiment_ngrams_tutorial
234312
beginner/torchtext_translation_tutorial
235-
advanced/dynamic_quantization_tutorial
236-
intermediate/dynamic_quantization_bert_tutorial
313+
237314

238315
.. toctree::
239316
:maxdepth: 2
@@ -243,22 +320,49 @@ Additional APIs
243320

244321
intermediate/reinforcement_q_learning
245322

323+
.. toctree::
324+
:maxdepth: 2
325+
:includehidden:
326+
:hidden:
327+
:caption: Deploying PyTorch Models in Production
328+
329+
intermediate/flask_rest_api_tutorial
330+
beginner/Intro_to_TorchScript_tutorial
331+
advanced/cpp_export
332+
advanced/super_resolution_with_onnxruntime
246333

247334
.. toctree::
248335
:maxdepth: 2
249336
:includehidden:
250337
:hidden:
251-
:caption: Additional APIs
338+
:caption: Frontend APIs
252339

253-
advanced/cpp_frontend
254340
intermediate/named_tensor_tutorial
255-
intermediate/pruning_tutorial
341+
advanced/cpp_frontend
342+
advanced/cpp_extension
343+
advanced/torch_script_custom_ops
344+
advanced/torch_script_custom_classes
256345

346+
.. toctree::
347+
:maxdepth: 2
348+
:includehidden:
349+
:hidden:
350+
:caption: Model Optimization
351+
352+
intermediate/pruning_tutorial
353+
advanced/dynamic_quantization_tutorial
354+
intermediate/dynamic_quantization_bert_tutorial
355+
advanced/static_quantization_tutorial
356+
intermediate/quantized_transfer_learning_tutorial
257357

258358
.. toctree::
259359
:maxdepth: 2
260360
:includehidden:
261361
:hidden:
262-
:caption: Recipes
362+
:caption: Parallel and Distributed Training
263363

264-
recipes/recipes_index
364+
intermediate/model_parallel_tutorial
365+
intermediate/ddp_tutorial
366+
intermediate/dist_tuto
367+
intermediate/rpc_tutorial
368+
beginner/aws_distributed_training_tutorial

recipes/index.rst

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
:orphan:
2+
3+
4+
5+
.. _sphx_glr_recipes:
6+
7+
Recipes
8+
------------------
9+
1. recipes/* and recipes_index.rst
10+
PyTorch Recipes
11+
https://pytorch.org/tutorials/recipes/recipes_index.html
12+
13+
14+
.. raw:: html
15+
16+
<div style='clear:both'></div>
17+
18+
19+
20+
.. only :: html
21+
22+
.. container:: sphx-glr-footer
23+
:class: sphx-glr-footer-gallery
24+
25+
26+
.. container:: sphx-glr-download
27+
28+
:download:`Download all examples in Python source code: recipes_python.zip <//Users/jplin/github/tutorials/recipes/recipes_python.zip>`
29+
30+
31+
32+
.. container:: sphx-glr-download
33+
34+
:download:`Download all examples in Jupyter notebooks: recipes_jupyter.zip <//Users/jplin/github/tutorials/recipes/recipes_jupyter.zip>`
35+
36+
37+
.. only:: html
38+
39+
.. rst-class:: sphx-glr-signature
40+
41+
`Gallery generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_

0 commit comments

Comments
 (0)