MCPcopy 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
96int NumTotalCPUs() {
97 int count = absl::base_internal::NumCPUs();
98 return (count <= 0) ? kUnknownCPU : count;
99}
100
101int GetCurrentCPU() {
102#if defined(__EMSCRIPTEN__)

Callers 1

TESTFunction · 0.50

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.40