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
4fbb55f7
Commit
4fbb55f7
authored
Sep 29, 2020
by
Duc Nguyen
Browse files
minors
parent
82968b99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
torch_cluster/fps.py
torch_cluster/fps.py
+0
-2
No files found.
torch_cluster/fps.py
View file @
4fbb55f7
...
@@ -35,8 +35,6 @@ def fps(src: torch.Tensor, batch: Optional[torch.Tensor] = None,
...
@@ -35,8 +35,6 @@ def fps(src: torch.Tensor, batch: Optional[torch.Tensor] = None,
assert
len
(
ratio
.
shape
)
<
2
,
'Invalid ratio'
assert
len
(
ratio
.
shape
)
<
2
,
'Invalid ratio'
ratio
=
ratio
.
to
(
src
.
device
)
ratio
=
ratio
.
to
(
src
.
device
)
if
len
(
ratio
.
shape
)
==
1
:
assert
ratio
.
shape
[
0
]
==
int
(
batch
.
max
())
+
1
,
'Mismatched input and ratio numbers'
if
batch
is
not
None
:
if
batch
is
not
None
:
assert
src
.
size
(
0
)
==
batch
.
numel
()
assert
src
.
size
(
0
)
==
batch
.
numel
()
...
...
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