| 72 | } |
| 73 | |
| 74 | static 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 |
no test coverage detected