Skip to content

Commit

Permalink
unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Apr 21, 2023
1 parent e3c3159 commit f417995
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/objective/lambdarank_obj.cu
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ void LambdaRankGetGradientMAP(Context const* ctx, std::int32_t iter,
linalg::VectorView<double const> tj_minus, // input bias ratio
linalg::VectorView<double> li, linalg::VectorView<double> lj,
HostDeviceVector<GradientPair>* out_gpair) {
auto const* cuctx = ctx->CUDACtx();
std::int32_t device_id = ctx->gpu_id;
dh::safe_cuda(cudaSetDevice(device_id));

Expand Down Expand Up @@ -481,7 +480,6 @@ void LambdaRankGetGradientPairwise(Context const* ctx, std::int32_t iter,
linalg::VectorView<double const> tj_minus, // input bias ratio
linalg::VectorView<double> li, linalg::VectorView<double> lj,
HostDeviceVector<GradientPair>* out_gpair) {
auto const* cuctx = ctx->CUDACtx();
std::int32_t device_id = ctx->gpu_id;
dh::safe_cuda(cudaSetDevice(device_id));

Expand Down

0 comments on commit f417995

Please sign in to comment.