Skip to content

Commit

Permalink
remove unsued variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Dec 3, 2024
1 parent 1c70abc commit 6ca87be
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cpp/src/sampling/neighbor_sampling_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,17 +442,6 @@ neighbor_sample_impl(raft::handle_t const& handle,
level_result_label_vectors = std::nullopt;
}

std::optional<rmm::device_uvector<size_t>> result_label_offsets{std::nullopt};
std::optional<rmm::device_uvector<label_t>> cp_result_labels{std::nullopt};
if (result_labels) {
cp_result_labels = rmm::device_uvector<label_t>(result_labels->size(), handle.get_stream());

thrust::copy(handle.get_thrust_policy(),
result_labels->begin(),
result_labels->end(),
cp_result_labels->begin());
}

return detail::shuffle_and_organize_output(handle,
std::move(result_srcs),
std::move(result_dsts),
Expand Down

0 comments on commit 6ca87be

Please sign in to comment.