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

Function CountAsCPUTime

tensorflow/core/profiler/internal/tfprof_node.cc:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 return device.find("stream:all") != device.npos;
24}
25bool CountAsCPUTime(const string& device) {
26 return RE2::FullMatch(device,
27 ".*/(device:gpu|gpu|device:cpu|cpu|device:sycl):\\d+");
28}
29bool IsCanonicalDevice(const string& device) { return CountAsCPUTime(device); }
30
31// Notes about start and end time from the NodeExecStats proto:

Callers 2

IsCanonicalDeviceFunction · 0.85
AddTimeStatsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected