We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b280dd commit c8a5974Copy full SHA for c8a5974
src/tree/fit_stump.cc
@@ -74,7 +74,7 @@ void FitStump(Context const* ctx, MetaInfo const& info, linalg::Matrix<GradientP
74
out->Reshape(n_targets);
75
76
gpair.SetDevice(ctx->Device());
77
- auto gpair_t = gpair.View(ctx->Device().IsSycl() ? DeviceOrd::CPU() : ctx->Device());
+ auto gpair_t = gpair.View(ctx->Device());
78
ctx->IsCUDA() ? cuda_impl::FitStump(ctx, info, gpair_t, out->View(ctx->Device()))
79
: cpu_impl::FitStump(ctx, info, gpair_t, out->HostView());
80
}
0 commit comments