|
|
@ -1525,6 +1525,7 @@ PDNode *patterns::ConvElementwiseadd::operator()(PDNode *conv_in) {
|
|
|
|
auto elementwise_add_op = pattern->NewNode(elementwise_add_op_repr())
|
|
|
|
auto elementwise_add_op = pattern->NewNode(elementwise_add_op_repr())
|
|
|
|
->assert_is_op("elementwise_add");
|
|
|
|
->assert_is_op("elementwise_add");
|
|
|
|
auto elementwise_add_in_y = pattern->NewNode(elementwise_add_in_y_repr())
|
|
|
|
auto elementwise_add_in_y = pattern->NewNode(elementwise_add_in_y_repr())
|
|
|
|
|
|
|
|
->assert_is_persistable_var()
|
|
|
|
->assert_is_op_input("elementwise_add", "Y")
|
|
|
|
->assert_is_op_input("elementwise_add", "Y")
|
|
|
|
->AsInput();
|
|
|
|
->AsInput();
|
|
|
|
auto elementwise_add_out = pattern->NewNode(elementwise_add_out_repr())
|
|
|
|
auto elementwise_add_out = pattern->NewNode(elementwise_add_out_repr())
|
|
|
|