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

Function FormatTime

tensorflow/core/profiler/internal/tfprof_utils.cc:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44string FormatTime(int64 micros) {
45 if (micros < 1000) {
46 return strings::Printf("%lldus", micros);
47 } else if (micros < 1000000) {
48 return strings::Printf("%.2fms", micros / 1000.0);
49 } else {
50 return strings::Printf("%.2fsec", micros / 1000000.0);
51 }
52}
53
54string FormatMemory(int64 bytes) {
55 if (bytes < 1000) {

Callers 10

FormatToalExecTimeFunction · 0.85
FormatCPUExecTimeFunction · 0.85
FormatTotalExecTimeFunction · 0.85
FormatCPUExecTimeFunction · 0.85
FormatInputShapesMethod · 0.85
CheckOpViewMethod · 0.85
CheckScopeViewMethod · 0.85
CodeViewHelperMethod · 0.85

Calls 1

PrintfFunction · 0.85

Tested by

no test coverage detected