Skip to content

Commit 39ed218

Browse files
committed
comment.
1 parent 4521f04 commit 39ed218

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tree/gpu_hist/gradient_based_sampler.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ GradientBasedSample ExternalMemoryGradientBasedSampling::Sample(Context const* c
318318
return {sample_rows, page_.get(), dh::ToSpan(gpair_)};
319319
}
320320

321-
GradientBasedSampler::GradientBasedSampler(Context const* ctx, bool is_external_memory,
321+
GradientBasedSampler::GradientBasedSampler(Context const* /*ctx*/, bool is_external_memory,
322322
size_t n_rows, const BatchParam& batch_param,
323323
float subsample, int sampling_method) {
324+
// The ctx is kept here for future development of stream-based operations.
324325
monitor_.Init("gradient_based_sampler");
325326

326327
bool is_sampling = subsample < 1.0;

0 commit comments

Comments
 (0)