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

Function SetPerThreadMaxParallelism

tensorflow/core/util/work_sharder.cc:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23/* ABSL_CONST_INIT */ thread_local int per_thread_max_parallism = 1000000;
24
25void SetPerThreadMaxParallelism(int max_parallelism) {
26 CHECK_LE(0, max_parallelism);
27 per_thread_max_parallism = max_parallelism;
28}
29
30int GetPerThreadMaxParallelism() { return per_thread_max_parallism; }
31

Callers 3

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68