Remove omp_get_max_threads in gbm and linear. (#7537)
* Use ctx in gbm. * Use ctx threads in gbm and linear.
This commit is contained in:
@@ -38,7 +38,7 @@ class PredictionContainer;
|
||||
*/
|
||||
class GradientBooster : public Model, public Configurable {
|
||||
protected:
|
||||
GenericParameter const* generic_param_;
|
||||
GenericParameter const* ctx_;
|
||||
|
||||
public:
|
||||
/*! \brief virtual destructor */
|
||||
|
||||
@@ -29,7 +29,7 @@ class GBLinearModel;
|
||||
*/
|
||||
class LinearUpdater : public Configurable {
|
||||
protected:
|
||||
GenericParameter const* learner_param_;
|
||||
GenericParameter const* ctx_;
|
||||
|
||||
public:
|
||||
/*! \brief virtual destructor */
|
||||
|
||||
Reference in New Issue
Block a user