Skip to content

Commit 113e8a6

Browse files
committed
fix KNN CUDA bug (PyG #4906)
1 parent a2773c2 commit 113e8a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csrc/cuda/knn_cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ knn_kernel(const scalar_t *__restrict__ x, const scalar_t *__restrict__ y,
4545
int64_t best_idx[100];
4646

4747
for (int e = 0; e < k; e++) {
48-
best_dist[e] = 5e4;
48+
best_dist[e] = 1e10;
4949
best_idx[e] = -1;
5050
}
5151

0 commit comments

Comments
 (0)