mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[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:
committed by
PyTorch MergeBot
parent
3627270bdf
commit
ead741c5fb
@ -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.
|
||||
|
Reference in New Issue
Block a user