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
4b01cc80
Commit
4b01cc80
authored
Dec 03, 2020
by
rusty1s
Browse files
make fps faster on CPU
parent
3d96a5d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/cpu/fps_cpu.cpp
csrc/cpu/fps_cpu.cpp
+1
-1
No files found.
csrc/cpu/fps_cpu.cpp
View file @
4b01cc80
...
...
@@ -3,7 +3,7 @@
#include "utils.h"
inline
torch
::
Tensor
get_dist
(
torch
::
Tensor
x
,
int64_t
idx
)
{
return
(
x
-
x
[
idx
]).
norm
(
2
,
1
);
return
(
x
-
x
[
idx
]).
pow_
(
2
).
sum
(
1
);
}
torch
::
Tensor
fps_cpu
(
torch
::
Tensor
src
,
torch
::
Tensor
ptr
,
double
ratio
,
...
...
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