[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

@ -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]