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

Method NumThreads

tensorflow/core/common_runtime/virtual_threadpool.cc:24–26  ·  view source on GitHub ↗

Returns the number of threads in the pool.

Source from the content-addressed store, hash-verified

22
23// Returns the number of threads in the pool.
24int VirtualThreadpool::NumThreads() const {
25 return underlying_threadpool_->NumThreads();
26}
27
28// Returns a logical thread index between 0 and NumThreads() - 1 if called
29// from one of the threads in the pool. Returns -1 otherwise.

Callers 3

RenamedDeviceMethod · 0.45
TESTFunction · 0.45
InitThreadpoolLabelsFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36