提交 895f8da7 编写于 作者: L lidanqing 提交者: Tao Luo

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

上级 cb5e0d20
......@@ -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
......
......@@ -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<std::string>("name");
std::cout << op_name << " \n";
VLOG(3) << op_name << "\n";
if (op_name != "Dequantize1") {
dequant_scale = boost::get<float>(op->GetAttr("Scale"));
EXPECT_EQ(dequant_scale, scale)
......
......@@ -328,7 +328,7 @@ class FusedEmbeddingFCLSTMKernel : public framework::OpKernel<T> {
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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册