[BE][4/16] fix typos in torch/ (torch/_dynamo/) (#156314)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156314
Approved by: https://github.com/jingsh
ghstack dependencies: #156313
This commit is contained in:
Xuehai Pan
2025-06-22 13:21:03 +08:00
committed by PyTorch MergeBot
parent 3627270bdf
commit ead741c5fb
30 changed files with 72 additions and 71 deletions

View File

@ -253,7 +253,7 @@ class PyCodegen:
# above, export _wants to_ obtain an identity FX graph (despite it
# appears unnecessarily expensive for `torch.compile`), so we have
# the following option to override Dynamo's preference for codegen
# from source. Morever, this option applies recursively, for cases
# from source. Moreover, this option applies recursively, for cases
# like input tensor being returned in a new dictionary.
#
# And why the `ValueMutationExisting` check? Not sure, so leaving it
@ -591,7 +591,7 @@ class PyCodegen:
def collect_temp_source(source):
if source in seen_sources:
# This source is used atleast twice, so it can be reused
# This source is used at least twice, so it can be reused
self.mark_source_temp(source)
# Dont trace source further. This prevents us from marking too
# many nodes as temp sources.