Skip to content

Commit

Permalink
remove unsued code
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Sep 25, 2024
1 parent 33c8b3d commit e357f42
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cpp/src/c_api/neighbor_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -942,14 +942,7 @@ struct neighbor_sampling_functor : public cugraph::c_api::abstract_functor {
std::optional<rmm::device_uvector<int32_t>> hop{std::nullopt};
std::optional<rmm::device_uvector<label_t>> edge_label{std::nullopt};
std::optional<rmm::device_uvector<size_t>> offsets{std::nullopt};

rmm::device_uvector<vertex_t> vertex_type_offsets(graph_view.local_vertex_partition_range_size(), handle_.get_stream());

cugraph::detail::sequence_fill(handle_.get_stream(),
vertex_type_offsets.begin(),
vertex_type_offsets.size(),
vertex_t{0});


// FIXME: For biased sampling, the user should pass either biases or edge weights,
// otherwised throw an error and suggest the user to call uniform neighbor sample instead

Expand Down

0 comments on commit e357f42

Please sign in to comment.