Skip to content

Commit a10d669

Browse files
committed
change from recommendation to try
1 parent e5bf61a commit a10d669

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

intermediate_source/torch_compile_tutorial.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ much as possible, and so we chose ``"reduce-overhead"``. For your own models,
184184
you may need to experiment with different modes to maximize speedup. You can
185185
read more about modes `here <https://pytorch.org/get-started/pytorch-2.0/#user-experience>`__.
186186

187-
We also note that for general PyTorch benchmarking, we recommend using ``torch.utils.benchmark``.
188-
We wrote our own timing functions in this tutorial to show ``torch.compile``'s compilation latency.
187+
For general PyTorch benchmarking, you can try using ``torch.utils.benchmark`` instead of the ``timed``
188+
function we defined above. We wrote our own timing function in this tutorial to show
189+
``torch.compile``'s compilation latency.
189190

190191
Now, let's consider comparing training.
191192

intermediate_source/torch_compile_tutorial_.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ def evaluate(mod, inp):
187187
# you may need to experiment with different modes to maximize speedup. You can
188188
# read more about modes `here <https://pytorch.org/get-started/pytorch-2.0/#user-experience>`__.
189189
#
190-
# We also note that for general PyTorch benchmarking, we recommend using ``torch.utils.benchmark``.
191-
# We wrote our own timing functions in this tutorial to show ``torch.compile``'s compilation latency.
190+
# For general PyTorch benchmarking, you can try using ``torch.utils.benchmark`` instead of the ``timed``
191+
# function we defined above. We wrote our own timing function in this tutorial to show
192+
# ``torch.compile``'s compilation latency.
192193
#
193194
# Now, let's consider comparing training.
194195

0 commit comments

Comments
 (0)