Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ NumTotalCPUs
Function
NumTotalCPUs
tensorflow/core/platform/posix/port.cc:96–99 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
94
}
95
96
int NumTotalCPUs() {
97
int count = absl::base_internal::NumCPUs();
98
return (count <= 0) ? kUnknownCPU : count;
99
}
100
101
int GetCurrentCPU() {
102
#if defined(__EMSCRIPTEN__)
Callers
1
TEST
Function · 0.50
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.40