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

Function InitComputePool

tensorflow/core/common_runtime/process_util.cc:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static thread::ThreadPool* InitComputePool(const SessionOptions& options) {
75 int32 inter_op_parallelism_threads =
76 options.config.inter_op_parallelism_threads();
77 if (inter_op_parallelism_threads == 0) {
78 inter_op_parallelism_threads = DefaultNumInterOpThreads();
79 }
80 return new thread::ThreadPool(
81 Env::Default(), ThreadOptions(), "Compute", inter_op_parallelism_threads,
82 !options.config.experimental().disable_thread_spinning(),
83 /*allocator=*/nullptr);
84}
85
86} // namespace
87

Callers 1

ComputePoolFunction · 0.85

Calls 4

DefaultNumInterOpThreadsFunction · 0.85
DefaultFunction · 0.85
ThreadOptionsClass · 0.85

Tested by

no test coverage detected