From a8961305536977f524ef3c908eb8af3ff83524f2 Mon Sep 17 00:00:00 2001 From: Mickael Ide Date: Mon, 23 Jan 2023 16:58:19 +0100 Subject: [PATCH] Fix gather_if raft update --- cpp/src/kmeans/kmeans_mg_impl.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/kmeans/kmeans_mg_impl.cuh b/cpp/src/kmeans/kmeans_mg_impl.cuh index 0fdfc6b826..c17cc9467b 100644 --- a/cpp/src/kmeans/kmeans_mg_impl.cuh +++ b/cpp/src/kmeans/kmeans_mg_impl.cuh @@ -636,7 +636,7 @@ void fit(const raft::handle_t& handle, centroids.extent(0), itr_wt, itr_wt, - wtInCluster.size(), + wtInCluster.extent(0), newCentroids.data_handle(), [=] __device__(raft::KeyValuePair map) { // predicate // copy when the # of samples in the cluster is 0