MCPcopy Create free account
hub / github.com/dmlc/xgboost / NumWorkers

Method NumWorkers

src/common/threadpool.h:113–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 [[nodiscard]] auto NumWorkers() const {
114 // Use the same type as the typical n_threads parameter in XGBoost.
115 return static_cast<std::int32_t>(pool_.size());
116 }
117};
118} // namespace xgboost::common

Callers 1

ReadCacheMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected