From cb44b694ae7b958c8d8ac40da541703fa9faf580 Mon Sep 17 00:00:00 2001 From: WJJ1995 Date: Thu, 14 Jul 2022 09:53:52 +0800 Subject: [PATCH] fixed glog (#44316) --- .../framework/ir/mkldnn/elt_act_mkldnn_fuse_pass.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/framework/ir/mkldnn/elt_act_mkldnn_fuse_pass.cc b/paddle/fluid/framework/ir/mkldnn/elt_act_mkldnn_fuse_pass.cc index c9eee31606..b28b07924d 100644 --- a/paddle/fluid/framework/ir/mkldnn/elt_act_mkldnn_fuse_pass.cc +++ b/paddle/fluid/framework/ir/mkldnn/elt_act_mkldnn_fuse_pass.cc @@ -99,10 +99,11 @@ void ElementwiseActivationOneDNNPass::FuseElementwiseAct( gpd(graph, handler); AddStatis(found_elementwise_activation_count); - PrettyLogDetail("--- fused %d %s with %s activation", - found_elementwise_activation_count, - elt_type, - act_type); + if (!Has("disable_logs") || !Get("disable_logs")) + PrettyLogDetail("--- fused %d %s with %s activation", + found_elementwise_activation_count, + elt_type, + act_type); } } // namespace ir -- GitLab