diff --git a/cpp/include/raft/spatial/knn/detail/ann_quantized.cuh b/cpp/include/raft/spatial/knn/detail/ann_quantized.cuh index a27e36c25d..8238c99065 100644 --- a/cpp/include/raft/spatial/knn/detail/ann_quantized.cuh +++ b/cpp/include/raft/spatial/knn/detail/ann_quantized.cuh @@ -81,7 +81,7 @@ void approx_knn_build_index(raft::device_resources const& handle, params.pq_dim = ivf_pq_pams->M; // TODO: handle ivf_pq_pams.usePrecomputedTables ? - auto index_view = raft::make_device_matrix_view(index_array, n, D); + auto index_view = raft::make_device_matrix_view(index_array, n, D); index->ivf_pq = std::make_unique>( neighbors::ivf_pq::build(handle, params, index_view)); } else { @@ -116,9 +116,9 @@ void approx_knn_search(raft::device_resources const& handle, params.n_probes = index->nprobe; auto query_view = - raft::make_device_matrix_view(query_array, n, index->ivf_pq->dim()); - auto indices_view = raft::make_device_matrix_view(indices, n, k); - auto distances_view = raft::make_device_matrix_view(distances, n, k); + raft::make_device_matrix_view(query_array, n, index->ivf_pq->dim()); + auto indices_view = raft::make_device_matrix_view(indices, n, k); + auto distances_view = raft::make_device_matrix_view(distances, n, k); neighbors::ivf_pq::search( handle, params, *index->ivf_pq, query_view, k, indices_view, distances_view); } else {