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

Function IsCanonicalDevice

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

Source from the content-addressed store, hash-verified

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:
32// For GPU, there is no difference between op_end_rel_micros and

Callers 2

GenerateGraphTimelineMethod · 0.85
AddStepStatMethod · 0.85

Calls 1

CountAsCPUTimeFunction · 0.85

Tested by

no test coverage detected