Non-positive thread counts use all cores available to this worker.
| 52 | |
| 53 | // Non-positive thread counts use all cores available to this worker. |
| 54 | static unsigned int reflow_resolve_omp_threads(int num_threads, unsigned int available) |
| 55 | { |
| 56 | if (num_threads > 0) { return std::min(static_cast<unsigned int>(num_threads), available); } |
| 57 | return available; |
| 58 | } |
| 59 | |
| 60 | int reflow_create_adam_optimizer(int optimizer_id, |
| 61 | float alpha, |
no outgoing calls
no test coverage detected