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