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
c20024c4
Commit
c20024c4
authored
Dec 18, 2018
by
rusty1s
Browse files
test no batch
parent
d1436292
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
test/test_fps.py
test/test_fps.py
+3
-0
test/test_nearest.py
test/test_nearest.py
+3
-0
No files found.
test/test_fps.py
View file @
c20024c4
...
...
@@ -23,3 +23,6 @@ def test_fps(dtype, device):
out
=
fps
(
x
,
batch
,
ratio
=
0.5
,
random_start
=
False
)
assert
out
.
tolist
()
==
[
0
,
2
,
4
,
6
]
out
=
fps
(
x
,
ratio
=
0.5
,
random_start
=
False
)
assert
out
.
sort
()[
0
].
tolist
()
==
[
0
,
5
,
6
,
7
]
test/test_nearest.py
View file @
c20024c4
...
...
@@ -31,3 +31,6 @@ def test_nearest(dtype, device):
out
=
nearest
(
x
,
y
,
batch_x
,
batch_y
)
assert
out
.
tolist
()
==
[
0
,
0
,
1
,
1
,
2
,
2
,
3
,
3
]
out
=
nearest
(
x
,
y
)
assert
out
.
tolist
()
==
[
0
,
0
,
1
,
1
,
2
,
2
,
3
,
3
]
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