Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion intermediate_source/torch_compile_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def bar(a, b):
#
# The second time we run ``bar``, we take the other branch of the if statement
# and we get 1 traced graph corresponding to the code ``b = b * -1; return x * b``.
# We do not see a graph of ``x = a / (torch.abs(a) + 1)`` outputted the second time
# We do not see a graph of ``x = a / (torch.abs(a) + 1); b.sum()`` outputted the second time
# since ``torch.compile`` cached this graph from the first run and re-used it.
#
# Let's investigate by example how TorchDynamo would step through ``bar``.
Expand Down
Loading