diff --git a/src/relay/ir/dataflow_matcher.cc b/src/relay/ir/dataflow_matcher.cc index 6ed24d5053c4..3f05663c0031 100644 --- a/src/relay/ir/dataflow_matcher.cc +++ b/src/relay/ir/dataflow_matcher.cc @@ -276,7 +276,8 @@ bool DFPatternMatcher::VisitDFPattern_(const CallPatternNode* op, const Expr& ex } // Commutative Matching if (const OpNode* op_node = get_op_node(op)) { - if ((op_node->name == "add") || (op_node->name == "multiply")) { +// if ((op_node->name == "add") || (op_node->name == "multiply")) { + if ((op_node->name == "multiply")) { if (match_args(reverse(op->args), call_node->args)) { return true; }