From 90ce4aead425eeeb4a6d4350ec8fec125b19d124 Mon Sep 17 00:00:00 2001 From: lidanqing Date: Tue, 21 Jan 2020 12:50:50 +0100 Subject: [PATCH] change std::cout to log(INFO), vlog (#22316) (#22337) --- .../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 1263ddd147..3e4e1d8929 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 63222d662f..f5bf441d10 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 9124e0c4c9..29e3277e83 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