Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Razdoburdin committed Nov 25, 2024
1 parent 107005b commit 7c22f22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/objective/regression_obj.cu
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class RegLossObj : public FitInterceptGlmLike {
if (iter == 0) {
ValidateLabel(info);
}

size_t const ndata = preds.Size();
out_gpair->SetDevice(ctx_->Device());
auto device = ctx_->Device();
Expand Down
2 changes: 2 additions & 0 deletions tests/cpp/objective/test_regression_obj.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <xgboost/json.h>
#include <xgboost/objective.h>

#include <numeric> // for iota

#include "../../../src/common/linalg_op.h" // for begin, end
#include "../../../src/objective/adaptive.h"
#include "../../../src/tree/param.h" // for TrainParam
Expand Down
2 changes: 0 additions & 2 deletions tests/cpp/objective/test_regression_obj_cpu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include <xgboost/context.h>
#include <xgboost/objective.h>

#include <numeric> // for iota

#include "../../../src/objective/adaptive.h"
#include "../../../src/tree/param.h" // for TrainParam
#include "../helpers.h"
Expand Down

0 comments on commit 7c22f22

Please sign in to comment.