Skip to content

Commit 69c4f6f

Browse files
xwu99pytorchmergebot
authored andcommitted
[Minor] Fix minor mistake in docstring of replace_pattern (pytorch#147611)
Fixes pytorch#147610 Pull Request resolved: pytorch#147611 Approved by: https://github.com/soulitzer
1 parent b9b1fd9 commit 69c4f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/fx/subgraph_rewriter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def forward(self, x, w1, w2):
140140
141141
142142
def pattern(w1, w2):
143-
return torch.cat([w1, w2]).sum()
143+
return torch.cat([w1, w2])
144144
145145
146146
def replacement(w1, w2):

0 commit comments

Comments
 (0)