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
6f0a5a4d
Commit
6f0a5a4d
authored
Nov 13, 2018
by
rusty1s
Browse files
typo
parent
685b3770
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cuda/fps_kernel.cu
cuda/fps_kernel.cu
+2
-3
No files found.
cuda/fps_kernel.cu
View file @
6f0a5a4d
...
...
@@ -15,9 +15,8 @@ template <typename scalar_t> struct Dist<scalar_t, 1> {
scalar_t
*
__restrict__
tmp_dist
,
size_t
dim
)
{
for
(
ptrdiff_t
n
=
start_idx
+
idx
;
n
<
end_idx
;
n
+=
THREADS
)
{
scalar_t
a
=
x
[
old
*
3
+
0
]
-
x
[
n
*
3
+
0
];
scalar_t
d
=
a
*
a
;
dist
[
n
]
=
min
(
dist
[
n
],
d
);
scalar_t
d
=
x
[
old
*
3
+
0
]
-
x
[
n
*
3
+
0
];
dist
[
n
]
=
min
(
dist
[
n
],
d
*
d
);
if
(
dist
[
n
]
>
*
best
)
{
*
best
=
dist
[
n
];
*
best_idx
=
n
;
...
...
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