From e357f4291c525b653e09525e5f765b2dba9e36a4 Mon Sep 17 00:00:00 2001 From: jnke2016 Date: Wed, 25 Sep 2024 14:13:04 -0700 Subject: [PATCH] remove unsued code --- cpp/src/c_api/neighbor_sampling.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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