Skip to content

Commit

Permalink
[PT2][Observability] Change the log logic (pytorch#129201)
Browse files Browse the repository at this point in the history
Summary: We only log the multiplier when users changes the default value.

Test Plan: see signal

Differential Revision: D58854330

Pull Request resolved: pytorch#129201
Approved by: https://github.com/Skylion007, https://github.com/dshi7
  • Loading branch information
mengluy0125 authored and pytorchmergebot committed Jun 21, 2024
1 parent 40e8675 commit 9d1b65b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_inductor/fx_passes/pad_mm.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def write_pad():
multiplier = torch._inductor.config.post_grad_fusion_options[
"shape_padding_multiplier"
].get("value", 1.1)
counters["inductor"]["shape_padding_multiplier"] += 1
counters["inductor"]["shape_padding_multiplier"] += 1
should_pad = _skip_do_bench_times or ori_time > pad_time * multiplier
set_cached_should_pad(key, should_pad)
return should_pad
Expand Down

0 comments on commit 9d1b65b

Please sign in to comment.