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

Function FormatCPUExecTime

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

Source from the content-addressed store, hash-verified

133}
134template <typename T>
135string FormatCPUExecTime(const T* node, const Options& opts) {
136 string time = FormatTime(node->proto().total_cpu_exec_micros());
137 if (node->account) {
138 time = FormatTime(node->proto().cpu_exec_micros()) + "/" + time;
139 } else {
140 time = "--/" + time;
141 }
142 return time;
143}
144template <typename T>
145string FormatAcceleratorExecTime(const T* node, const Options& opts) {
146 string time = FormatTime(node->proto().total_accelerator_exec_micros());

Callers

nothing calls this directly

Calls 3

FormatTimeFunction · 0.85
protoMethod · 0.80
cpu_exec_microsMethod · 0.45

Tested by

no test coverage detected