Skip to content

Commit

Permalink
old ctk.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Feb 28, 2023
1 parent 7d0c79f commit 8700297
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/objective/lambdarank_obj.cu
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,9 @@ void LambdaRankUpdatePositionBias(Context const* ctx, linalg::VectorView<double
auto key_it = dh::MakeTransformIterator<std::size_t>(
thrust::make_counting_iterator(0ul),
[=] XGBOOST_DEVICE(std::size_t i) { return i * n_groups; });
auto val_it = thrust::make_zip_iterator(li_it, lj_it);
auto out_it = thrust::make_zip_iterator(li.Values().data(), lj.Values().data());
auto val_it = thrust::make_zip_iterator(thrust::make_tuple(li_it, lj_it));
auto out_it =
thrust::make_zip_iterator(thrust::make_tuple(li.Values().data(), lj.Values().data()));

auto init = thrust::make_tuple(0.0, 0.0);
std::size_t bytes;
Expand Down

0 comments on commit 8700297

Please sign in to comment.