From 922d2f87264619f9ed974c56398913d1ea655c94 Mon Sep 17 00:00:00 2001 From: Aritra Roy Gosthipaty Date: Mon, 1 Sep 2025 11:44:46 +0200 Subject: [PATCH 1/2] Fix comment reference for blocked_autorange method Updated comment to correct the reference to the benchmarking method. --- recipes_source/recipes/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes_source/recipes/benchmark.py b/recipes_source/recipes/benchmark.py index d02157a83e4..e0000bf5eaf 100644 --- a/recipes_source/recipes/benchmark.py +++ b/recipes_source/recipes/benchmark.py @@ -292,7 +292,7 @@ def batched_dot_bmm(a, b): # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # While ``timeit.Timer.autorange`` takes a single continuous measurement -# of at least 0.2 seconds, `torch.utils.benchmark.blocked_autorange` +# of at least 0.2 seconds, `torch.utils.benchmark.Timer.blocked_autorange` # takes many measurements whose times total at least 0.2 seconds (which # can be changed by the `min_run_time` parameter) subject to the constraint # that timing overhead is a small fraction of the overall measurement. From 00f366ccb21b5969d3680215658fff39c8cb5600 Mon Sep 17 00:00:00 2001 From: sekyondaMeta <127536312+sekyondaMeta@users.noreply.github.com> Date: Mon, 22 Sep 2025 10:21:18 -0400 Subject: [PATCH 2/2] Update benchmark.py --- recipes_source/recipes/benchmark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes_source/recipes/benchmark.py b/recipes_source/recipes/benchmark.py index e0000bf5eaf..96fdf109bde 100644 --- a/recipes_source/recipes/benchmark.py +++ b/recipes_source/recipes/benchmark.py @@ -884,5 +884,5 @@ def pretty_print(result): # # Take a look at these other recipes to continue your learning: # -# - `PyTorch Profiler `_ +# - `PyTorch Profiler `_ #