diff --git a/cpp/src/c_api/neighbor_sampling.cpp b/cpp/src/c_api/neighbor_sampling.cpp index de3d79875d2..76c35f93b4f 100644 --- a/cpp/src/c_api/neighbor_sampling.cpp +++ b/cpp/src/c_api/neighbor_sampling.cpp @@ -942,14 +942,7 @@ struct neighbor_sampling_functor : public cugraph::c_api::abstract_functor { std::optional> hop{std::nullopt}; std::optional> edge_label{std::nullopt}; std::optional> offsets{std::nullopt}; - - rmm::device_uvector 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