You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# In this tutorial, we applied ``torch.compile`` to training and inference on a real model,
230
+
# demonstrating speedups.
231
+
#
232
+
# Importantly, we note that the first few iterations of a compiled model
233
+
# are slower than eager mode due to compilation overhead, but subsequent iterations are expected to
234
+
# have speedups.
235
+
#
236
+
# For a gentle introduction to ``torch.compile``, please check out `the introduction to ``torch.compile`` tutorial <https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html>`__.
237
+
#
238
+
# To troubleshoot issues and to gain a deeper understanding of how to apply ``torch.compile`` to your code, check out `the ``torch.compile`` programming model <https://docs.pytorch.org/docs/main/compile/programming_model.html>`__.
239
+
#
240
+
# We hope that you will give ``torch.compile`` a try!
# ``torch.compile`` is the new way to speed up your PyTorch code!
11
22
# ``torch.compile`` makes PyTorch code run faster by
@@ -27,6 +38,8 @@
27
38
#
28
39
# For an end-to-end example on a real model, check out our `end-to-end ``torch.compile`` tutorial <https://pytorch.org/tutorials/intermediate/torch_compile_full_example.html>`__.
29
40
#
41
+
# To troubleshoot issues and to gain a deeper understanding of how to apply ``torch.compile`` to your code, check out `the ``torch.compile`` programming model <https://docs.pytorch.org/docs/main/compile/programming_model.html>`__.
42
+
#
30
43
# **Contents**
31
44
#
32
45
# .. contents::
@@ -128,7 +141,7 @@ def forward(self, x):
128
141
# -----------------------
129
142
#
130
143
# Now let's demonstrate how ``torch.compile`` speeds up a simple PyTorch example.
131
-
# For a demonstration on a more complex model, see <TODO link>.
144
+
# For a demonstration on a more complex model, see our `end-to-end ``torch.compile`` tutorial <https://pytorch.org/tutorials/intermediate/torch_compile_full_example.html>`__.
# Check out our `section on graph breaks in the ``torch.compile`` programming model <https://docs.pytorch.org/docs/main/compile/programming_model.graph_breaks_index.html>`__
# For an end-to-end example on a real model, check out our `end-to-end ``torch.compile`` tutorial <https://pytorch.org/tutorials/intermediate/torch_compile_full_example.html>`__.
441
420
#
421
+
# To troubleshoot issues and to gain a deeper understanding of how to apply ``torch.compile`` to your code, check out `the ``torch.compile`` programming model <https://docs.pytorch.org/docs/main/compile/programming_model.html>`__.
422
+
#
442
423
# We hope that you will give ``torch.compile`` a try!
0 commit comments