Skip to content

Commit

Permalink
fix: Fix fuse addmm pass
Browse files Browse the repository at this point in the history
Signed-off-by: Dheeraj Peri <[email protected]>
  • Loading branch information
peri044 committed Dec 2, 2021
1 parent 4d2cb14 commit 58e9ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lowering/passes/fuse_addmm_branches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct AddMMBranchFusion {
if ((*arm1_start)->kind().toQualString() == std::string("aten::addmm") &&
(*(++arm1_start))->kind() == prim::Return &&
(*arm2_start)->kind().toQualString() == std::string("aten::matmul") &&
(*(++arm2_start))->kind().toQualString() != std::string("aten::add") &&
(*(++arm2_start))->kind().toQualString() == std::string("aten::add") &&
(*(++arm2_start))->kind() == prim::Return) {
// Make sure that block0 is solely just the aten::addmm op and block1 is matmul + add
return true;
Expand Down

0 comments on commit 58e9ea0

Please sign in to comment.