mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-22 14:15:01 +08:00
[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:
committed by
PyTorch MergeBot
parent
8b97e4dd8c
commit
7a92b51196
@ -179,7 +179,7 @@ def raise_getitems(gm: fx.GraphModule) -> fx.GraphModule:
|
||||
)
|
||||
|
||||
# loop through getitem nodes in the graph and raise them to the parent node
|
||||
# in reverse order to perserve their original relative order
|
||||
# in reverse order to preserve their original relative order
|
||||
for node in reversed(getitem_nodes):
|
||||
assert len(node.all_input_nodes) == 1
|
||||
parent = node.all_input_nodes[0]
|
||||
|
Reference in New Issue
Block a user