From 895f8da7d60483910f8e1d92008ea6854a7e56d3 Mon Sep 17 00:00:00 2001 From: lidanqing Date: Thu, 16 Jan 2020 08:02:37 +0100 Subject: [PATCH] change std::cout to log(INFO), vlog (#22316) --- .../ir/mkldnn/conv_elementwise_add_mkldnn_fuse_pass.cc | 2 +- paddle/fluid/framework/ir/mkldnn/cpu_quantize_pass_tester.cc | 2 +- paddle/fluid/operators/fused/fused_embedding_fc_lstm_op.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/framework/ir/mkldnn/conv_elementwise_add_mkldnn_fuse_pass.cc b/paddle/fluid/framework/ir/mkldnn/conv_elementwise_add_mkldnn_fuse_pass.cc index 1263ddd147e..3e4e1d8929c 100644 --- a/paddle/fluid/framework/ir/mkldnn/conv_elementwise_add_mkldnn_fuse_pass.cc +++ b/paddle/fluid/framework/ir/mkldnn/conv_elementwise_add_mkldnn_fuse_pass.cc @@ -332,7 +332,7 @@ void ResidualConnectionMKLDNNFusePass::ApplyImpl(graph_ptr graph) const { FuseConvAsX(name_scope_, FuseProjectionConv(name_scope_, std::make_pair(graph, 0)))); - std::cout << "Fused graph " << fused_graph_with_stats.second << std::endl; + LOG(INFO) << "Fused graph " << fused_graph_with_stats.second << "\n"; AddStatis(fused_graph_with_stats.second); } } // namespace ir diff --git a/paddle/fluid/framework/ir/mkldnn/cpu_quantize_pass_tester.cc b/paddle/fluid/framework/ir/mkldnn/cpu_quantize_pass_tester.cc index 63222d662f7..f5bf441d10c 100644 --- a/paddle/fluid/framework/ir/mkldnn/cpu_quantize_pass_tester.cc +++ b/paddle/fluid/framework/ir/mkldnn/cpu_quantize_pass_tester.cc @@ -431,7 +431,7 @@ void MainTestReshape(const ProgramDesc& prog, int transpose_count, } else if (op->Type() == "dequantize") { dequantize_nodes_count++; auto op_name = op->GetAttrIfExists("name"); - std::cout << op_name << " \n"; + VLOG(3) << op_name << "\n"; if (op_name != "Dequantize1") { dequant_scale = boost::get(op->GetAttr("Scale")); EXPECT_EQ(dequant_scale, scale) diff --git a/paddle/fluid/operators/fused/fused_embedding_fc_lstm_op.cc b/paddle/fluid/operators/fused/fused_embedding_fc_lstm_op.cc index 9124e0c4c9b..29e3277e836 100644 --- a/paddle/fluid/operators/fused/fused_embedding_fc_lstm_op.cc +++ b/paddle/fluid/operators/fused/fused_embedding_fc_lstm_op.cc @@ -328,7 +328,7 @@ class FusedEmbeddingFCLSTMKernel : public framework::OpKernel { INIT_VEC_FUNC INIT_BASE_INPUT_DATAS - // std::cout << "====> SeqCompute" << std::endl; + // log(INFO) << "====> SeqCompute" << "\n"; auto ids_lod = ids->lod(); const int total_T = ids_dims[0]; const int N = ids_lod[0].size() - 1; -- GitLab