Commit fdb9f3ea by Yida Wang Committed by Leyuan Wang

Minor addition to graph runtime debug (#3129)

* print op names in graph runtime debug

* fix lint
parent 2e260938
...@@ -110,7 +110,8 @@ class GraphRuntimeDebug : public GraphRuntime { ...@@ -110,7 +110,8 @@ class GraphRuntimeDebug : public GraphRuntime {
for (size_t index = 0; index < time_per_op.size(); index++) { for (size_t index = 0; index < time_per_op.size(); index++) {
if (op_execs_[index]) { if (op_execs_[index]) {
time_per_op[index] /= number; time_per_op[index] /= number;
LOG(INFO) << "Op #" << op++ << ": " << time_per_op[index] << " ms/iter"; LOG(INFO) << "Op #" << op++ << " " << GetNodeName(index) << ": "
<< time_per_op[index] << " ms/iter";
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment