change std::cout to log(INFO), vlog (#22316)

revert-22710-feature/integrated_ps_api
lidanqing 5 years ago committed by Tao Luo
parent cb5e0d20c2
commit 895f8da7d6

@ -332,7 +332,7 @@ void ResidualConnectionMKLDNNFusePass::ApplyImpl(graph_ptr graph) const {
FuseConvAsX(name_scope_, FuseConvAsX(name_scope_,
FuseProjectionConv(name_scope_, std::make_pair(graph, 0)))); 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); AddStatis(fused_graph_with_stats.second);
} }
} // namespace ir } // namespace ir

@ -431,7 +431,7 @@ void MainTestReshape(const ProgramDesc& prog, int transpose_count,
} else if (op->Type() == "dequantize") { } else if (op->Type() == "dequantize") {
dequantize_nodes_count++; dequantize_nodes_count++;
auto op_name = op->GetAttrIfExists<std::string>("name"); auto op_name = op->GetAttrIfExists<std::string>("name");
std::cout << op_name << " \n"; VLOG(3) << op_name << "\n";
if (op_name != "Dequantize1") { if (op_name != "Dequantize1") {
dequant_scale = boost::get<float>(op->GetAttr("Scale")); dequant_scale = boost::get<float>(op->GetAttr("Scale"));
EXPECT_EQ(dequant_scale, scale) EXPECT_EQ(dequant_scale, scale)

@ -328,7 +328,7 @@ class FusedEmbeddingFCLSTMKernel : public framework::OpKernel<T> {
INIT_VEC_FUNC INIT_VEC_FUNC
INIT_BASE_INPUT_DATAS INIT_BASE_INPUT_DATAS
// std::cout << "====> SeqCompute" << std::endl; // log(INFO) << "====> SeqCompute" << "\n";
auto ids_lod = ids->lod(); auto ids_lod = ids->lod();
const int total_T = ids_dims[0]; const int total_T = ids_dims[0];
const int N = ids_lod[0].size() - 1; const int N = ids_lod[0].size() - 1;

Loading…
Cancel
Save