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
1f2c3c31
Commit
1f2c3c31
authored
Nov 13, 2018
by
rusty1s
Browse files
assert
parent
c11f343b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
torch_cluster/fps.py
torch_cluster/fps.py
+1
-0
No files found.
torch_cluster/fps.py
View file @
1f2c3c31
...
@@ -29,6 +29,7 @@ def fps(x, batch=None, ratio=0.5, random_start=True):
...
@@ -29,6 +29,7 @@ def fps(x, batch=None, ratio=0.5, random_start=True):
assert
x
.
is_cuda
assert
x
.
is_cuda
assert
x
.
dim
()
<=
2
and
batch
.
dim
()
==
1
assert
x
.
dim
()
<=
2
and
batch
.
dim
()
==
1
assert
x
.
size
(
0
)
==
batch
.
size
(
0
)
assert
x
.
size
(
0
)
==
batch
.
size
(
0
)
assert
ratio
>
0
and
ratio
<
1
x
=
x
.
view
(
-
1
,
1
)
if
x
.
dim
()
==
1
else
x
x
=
x
.
view
(
-
1
,
1
)
if
x
.
dim
()
==
1
else
x
...
...
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