Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-cluster
Commits
113e8a6a
"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "ec1aded12e8fbdc98d6703f9111ed824addebc77"
Commit
113e8a6a
authored
Jul 07, 2022
by
rusty1s
Browse files
fix KNN CUDA bug (PyG #4906)
parent
a2773c21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/cuda/knn_cuda.cu
csrc/cuda/knn_cuda.cu
+1
-1
No files found.
csrc/cuda/knn_cuda.cu
View file @
113e8a6a
...
@@ -45,7 +45,7 @@ knn_kernel(const scalar_t *__restrict__ x, const scalar_t *__restrict__ y,
...
@@ -45,7 +45,7 @@ knn_kernel(const scalar_t *__restrict__ x, const scalar_t *__restrict__ y,
int64_t
best_idx
[
100
];
int64_t
best_idx
[
100
];
for
(
int
e
=
0
;
e
<
k
;
e
++
)
{
for
(
int
e
=
0
;
e
<
k
;
e
++
)
{
best_dist
[
e
]
=
5e4
;
best_dist
[
e
]
=
1e10
;
best_idx
[
e
]
=
-
1
;
best_idx
[
e
]
=
-
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment