Skip to content

Commit ad4b009

Browse files
Fix comment reference for blocked_autorange method (#3534)
Updated comment to correct the reference to the benchmarking method. --------- Co-authored-by: sekyondaMeta <[email protected]>
1 parent c1903fc commit ad4b009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes_source/recipes/benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def batched_dot_bmm(a, b):
292292
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
293293
#
294294
# While ``timeit.Timer.autorange`` takes a single continuous measurement
295-
# of at least 0.2 seconds, `torch.utils.benchmark.blocked_autorange`
295+
# of at least 0.2 seconds, `torch.utils.benchmark.Timer.blocked_autorange`
296296
# takes many measurements whose times total at least 0.2 seconds (which
297297
# can be changed by the `min_run_time` parameter) subject to the constraint
298298
# that timing overhead is a small fraction of the overall measurement.
@@ -884,5 +884,5 @@ def pretty_print(result):
884884
#
885885
# Take a look at these other recipes to continue your learning:
886886
#
887-
# - `PyTorch Profiler <https://pytorch.org/tutorials/recipes/recipes/profiler.html>`_
887+
# - `PyTorch Profiler <https://docs.pytorch.org/tutorials/recipes/recipes/profiler_recipe.html>`_
888888
#

0 commit comments

Comments
 (0)