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
cd250a63
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "d46421446437511c931afd38ba3aa4908a00bdd9"
Commit
cd250a63
authored
Feb 19, 2018
by
rusty1s
Browse files
typo
parent
801e5f1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torch_cluster/functions/grid.py
torch_cluster/functions/grid.py
+2
-1
No files found.
torch_cluster/functions/grid.py
View file @
cd250a63
...
@@ -27,7 +27,8 @@ def grid_cluster(position, size, batch=None, fake_nodes=False, offset=None):
...
@@ -27,7 +27,8 @@ def grid_cluster(position, size, batch=None, fake_nodes=False, offset=None):
position
=
position
-
min
position
=
position
-
min
else
:
else
:
position
=
position
+
offset
position
=
position
+
offset
assert
position
.
min
()
>=
0
,
'Offset resulting in negative positions'
assert
position
.
min
()
>=
0
,
(
'Passed offset resulting in unallowed negative positions'
)
# Compute cluster count for each dimension.
# Compute cluster count for each dimension.
max
=
position
.
max
(
dim
=
0
)[
0
]
max
=
position
.
max
(
dim
=
0
)[
0
]
...
...
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