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
31638af9
"vscode:/vscode.git/clone" did not exist on "f36f3514e78485373ff04bc7efaef5aef9f4379a"
Commit
31638af9
authored
Feb 19, 2018
by
rusty1s
Browse files
Revert "return None for batch"
This reverts commit
0199c312
.
parent
0199c312
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torch_cluster/functions/grid.py
torch_cluster/functions/grid.py
+1
-1
No files found.
torch_cluster/functions/grid.py
View file @
31638af9
...
@@ -42,7 +42,7 @@ def grid_cluster(position, size, batch=None):
...
@@ -42,7 +42,7 @@ def grid_cluster(position, size, batch=None):
cluster
,
u
=
consecutive
(
cluster
)
cluster
,
u
=
consecutive
(
cluster
)
if
batch
is
None
:
if
batch
is
None
:
return
cluster
,
None
return
cluster
else
:
else
:
print
(
p_max
.
tolist
(),
size
.
tolist
(),
C
)
print
(
p_max
.
tolist
(),
size
.
tolist
(),
C
)
batch
=
(
u
/
C
).
long
()
batch
=
(
u
/
C
).
long
()
...
...
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