Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ IsPlacedOnCPU
Function
IsPlacedOnCPU
tensorflow/core/profiler/internal/tfprof_node.cc:294–296 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
292
device.find(
"sycl"
) != device.npos;
293
}
294
bool IsPlacedOnCPU(const string& device) {
295
return device.find(
"cpu"
) != device.npos;
296
}
297
} // namespace tfprof
298
} // namespace tensorflow
Callers
2
GenerateGraphTimeline
Method · 0.85
AddMemoryStats
Method · 0.85
Calls
1
find
Method · 0.45
Tested by
no test coverage detected