Commit 113e8a6a authored by rusty1s's avatar rusty1s
Browse files

fix KNN CUDA bug (PyG #4906)

parent a2773c21
......@@ -45,7 +45,7 @@ knn_kernel(const scalar_t *__restrict__ x, const scalar_t *__restrict__ y,
int64_t best_idx[100];
for (int e = 0; e < k; e++) {
best_dist[e] = 5e4;
best_dist[e] = 1e10;
best_idx[e] = -1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment