Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ GetPerThreadMaxParallelism
Function
GetPerThreadMaxParallelism
tensorflow/core/util/work_sharder.cc:30–30 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
28
}
29
30
int GetPerThreadMaxParallelism() { return per_thread_max_parallism; }
31
32
void Shard(int max_parallelism, thread::ThreadPool* workers, int64 total,
33
int64 cost_per_unit, std::function<void(int64, int64)> work) {
Callers
4
eigen_cpu_device
Method · 0.85
TEST
Function · 0.85
Shard
Function · 0.85
ScopedPerThreadMaxParallelism
Method · 0.85
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.68