Skip to content

Commit

Permalink
testing knn
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshyoga committed Apr 20, 2024
1 parent 386aeba commit f55a3d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sycl::event knn_impl(sycl::queue q,

// here k has to be 5 in order to match with numpy no. of
// neighbors
struct neighbors<FpTy> queue_neighbors[5];
struct neighbors<FpTy> queue_neighbors[5] = {0.0, 0};

// count distances
for (size_t j = 0; j < k; ++j) {
Expand Down

0 comments on commit f55a3d3

Please sign in to comment.