MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / FormatTotalExecTime

Function FormatTotalExecTime

tensorflow/core/profiler/internal/tfprof_show.h:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124template <typename T>
125string FormatTotalExecTime(const T* node, const Options& opts) {
126 string time = FormatTime(node->proto().total_exec_micros());
127 if (node->account) {
128 time = FormatTime(node->proto().exec_micros()) + "/" + time;
129 } else {
130 time = "--/" + time;
131 }
132 return time;
133}
134template <typename T>
135string FormatCPUExecTime(const T* node, const Options& opts) {
136 string time = FormatTime(node->proto().total_cpu_exec_micros());

Callers 2

FormatNodeMethod · 0.85
FormatTimesMethod · 0.85

Calls 3

FormatTimeFunction · 0.85
protoMethod · 0.80
exec_microsMethod · 0.45

Tested by

no test coverage detected