Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Razdoburdin committed Oct 25, 2024
1 parent 5ee60e9 commit f863bee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/sycl/objective/regression_obj.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class MeanAbsoluteError : public ObjFunction {
}

void GetGradient(HostDeviceVector<float> const& preds, const MetaInfo& info,
std::int32_t /*iter*/, xgboost::linalg::Matrix<GradientPair>* out_gpair) override {
std::int32_t, xgboost::linalg::Matrix<GradientPair>* out_gpair) override {
if (qu_ == nullptr) {
qu_ = device_manager.GetQueue(ctx_->Device());
}
Expand Down Expand Up @@ -265,6 +265,7 @@ class MeanAbsoluteError : public ObjFunction {
void LoadConfig(Json const& in) override {
CHECK_EQ(StringView{get<String const>(in["name"])}, StringView{"reg:absoluteerror"});
}

protected:
sycl::DeviceManager device_manager;
mutable ::sycl::queue* qu_ = nullptr;
Expand Down

0 comments on commit f863bee

Please sign in to comment.