From c7248cda7136337b83ad03658edabda6ba8f6fc3 Mon Sep 17 00:00:00 2001 From: liu zhengxi <380185688@qq.com> Date: Fri, 10 Jan 2020 13:05:34 +0800 Subject: [PATCH] fix xception precision problem (#22188) --- paddle/fluid/framework/ir/graph_pattern_detector.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/framework/ir/graph_pattern_detector.cc b/paddle/fluid/framework/ir/graph_pattern_detector.cc index 32812390da8..55e5213f63d 100644 --- a/paddle/fluid/framework/ir/graph_pattern_detector.cc +++ b/paddle/fluid/framework/ir/graph_pattern_detector.cc @@ -1441,6 +1441,7 @@ PDNode *patterns::ConvElementwiseadd::operator()(PDNode *conv_in) { auto elementwise_add_op = pattern->NewNode(elementwise_add_op_repr()) ->assert_is_op("elementwise_add"); auto elementwise_add_in_y = pattern->NewNode(elementwise_add_in_y_repr()) + ->assert_is_persistable_var() ->assert_is_op_input("elementwise_add", "Y") ->AsInput(); auto elementwise_add_out = pattern->NewNode(elementwise_add_out_repr()) -- GitLab