Skip to content

Commit c7248cd

Browse files
authored
fix xception precision problem (#22188)
1 parent 3df38f5 commit c7248cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/framework/ir/graph_pattern_detector.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,6 +1441,7 @@ PDNode *patterns::ConvElementwiseadd::operator()(PDNode *conv_in) {
14411441
auto elementwise_add_op = pattern->NewNode(elementwise_add_op_repr())
14421442
->assert_is_op("elementwise_add");
14431443
auto elementwise_add_in_y = pattern->NewNode(elementwise_add_in_y_repr())
1444+
->assert_is_persistable_var()
14441445
->assert_is_op_input("elementwise_add", "Y")
14451446
->AsInput();
14461447
auto elementwise_add_out = pattern->NewNode(elementwise_add_out_repr())

0 commit comments

Comments
 (0)