| commit | 46d1f9b38561f1c0842962881e1f1f19b0875620 | [log] [tgz] |
|---|---|---|
| author | Jon Chuang <9093549+jon-chuang@users.noreply.github.com> | Mon Oct 02 17:04:01 2023 +0000 |
| committer | PyTorch MergeBot <pytorchmergebot@users.noreply.github.com> | Mon Oct 02 17:04:01 2023 +0000 |
| tree | 3773a96d4344bebeddd52b870ccfcf3ec5cb1d65 | |
| parent | a3c1e3c95cd23e6b4650a97a45dd8f11d18bd53a [diff] |
fix(lint): Fix lint issues on main (#110389) Lint issue was introduced in https://github.com/pytorch/pytorch/pull/110186 Pull Request resolved: https://github.com/pytorch/pytorch/pull/110389 Approved by: https://github.com/Skylion007, https://github.com/malfet
diff --git a/torch/_inductor/fx_passes/post_grad.py b/torch/_inductor/fx_passes/post_grad.py index 12cbc63..08eca92 100644 --- a/torch/_inductor/fx_passes/post_grad.py +++ b/torch/_inductor/fx_passes/post_grad.py
@@ -96,7 +96,10 @@ if config.is_fbcode(): from torch._inductor.fb.utils import get_everpaste_url # type: ignore[import] - log.info(f"Print graph after recompile in post grad passes: {get_everpaste_url(str(gm.graph))}") + log.info( + "Print graph after recompile in post grad passes: %s", + get_everpaste_url(str(gm.graph)), + ) @init_once_fakemode
diff --git a/torch/_inductor/fx_passes/pre_grad.py b/torch/_inductor/fx_passes/pre_grad.py index 642af6b..150a312 100644 --- a/torch/_inductor/fx_passes/pre_grad.py +++ b/torch/_inductor/fx_passes/pre_grad.py
@@ -76,7 +76,10 @@ if config.is_fbcode(): from torch._inductor.fb.utils import get_everpaste_url # type: ignore[import] - log.info(f"Print graph after recompile in pre grad passes: {get_everpaste_url(str(gm.graph))}") + log.info( + "Print graph after recompile in pre grad passes: %s", + get_everpaste_url(str(gm.graph)), + ) return gm