未验证 提交 52e2c83e 编写于 作者: P Pei Yang 提交者: GitHub

optimize fusion pass logs to avoid duplication (#34261)

上级 b5aab4f0
......@@ -53,6 +53,8 @@ void FusePassBase::AddStatis(int count_of_fused) const {
auto& info =
graph_->Get<std::unordered_map<std::string, int>>(kFuseStatisAttr);
info[repr_] = count_of_fused;
if (count_of_fused > 0)
LOG(INFO) << "--- detected " << count_of_fused << " subgraphs";
}
FuseOptions FusePassBase::FindFuseOption(const Node& node1,
......
......@@ -88,7 +88,7 @@ void GraphPatternDetector::operator()(Graph *graph,
ValidateByNodeRole(&subgraphs);
if (subgraphs.empty()) return;
LOG(INFO) << "--- detected " << subgraphs.size() << " subgraphs";
int id = 0;
for (auto &g : subgraphs) {
VLOG(3) << "optimizing #" << id++ << " subgraph";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册