Skip to content

Commit 8ae05c2

Browse files
authored
Fix FuseMMWithAdd returning False after graph mutation
Differential Revision: D103935830 Pull Request resolved: #19318
1 parent 5b337e9 commit 8ae05c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backends/cadence/aot/fuse_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def maybe_remove_or_replace(self, node: torch.fx.Node) -> bool:
190190
# is True)
191191
# 2. The single successor of addmm is not a view op.
192192
if len(addmm_node.users) == 0:
193-
return False
193+
return True
194194

195195
addmm_user = list(addmm_node.users.keys())[0]
196196
if intermediate_view and not self._is_view_node(addmm_user):

0 commit comments

Comments
 (0)