Skip to content

Commit

Permalink
conditionally disabled logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakpiase committed Oct 29, 2021
1 parent 2a219a7 commit f172629
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ void SoftplusActivationOneDNNPass::FuseSoftplusActivation(

gpd(graph, handler);
AddStatis(found_softplus_activation_count);
PrettyLogDetail("--- fused %d softplus with %s activation",
found_softplus_activation_count, fuse_activation_type);
if (!Has("disable_logs") || !Get<bool>("disable_logs"))
PrettyLogDetail("--- fused %d softplus with %s activation",
found_softplus_activation_count, fuse_activation_type);
}
} // namespace ir
} // namespace framework
Expand Down

0 comments on commit f172629

Please sign in to comment.