[BE][2/16] fix typos in torch/ (torch/_*/) (#156312)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156312
Approved by: https://github.com/albanD
This commit is contained in:
Xuehai Pan
2025-07-11 22:11:04 +08:00
committed by PyTorch MergeBot
parent 8b97e4dd8c
commit 7a92b51196
68 changed files with 121 additions and 122 deletions

View File

@ -852,7 +852,7 @@ def check_input_alias_and_mutation_return_outputs(
# Clone the fake args to avoid mutating the original fake args
with ExitStack() as ctx_stack:
# We need to re-use prev_fake_mode's shape env to resolve
# We need to reuse prev_fake_mode's shape env to resolve
# the runtime assertions for unbacked symbols.
new_fake_mode = torch._subclasses.FakeTensorMode(
shape_env=_get_shape_env(fake_args),