Skip to content

Commit cd250a6

Browse files
committed
typo
1 parent 801e5f1 commit cd250a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

torch_cluster/functions/grid.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def grid_cluster(position, size, batch=None, fake_nodes=False, offset=None):
2727
position = position - min
2828
else:
2929
position = position + offset
30-
assert position.min() >= 0, 'Offset resulting in negative positions'
30+
assert position.min() >= 0, (
31+
'Passed offset resulting in unallowed negative positions')
3132

3233
# Compute cluster count for each dimension.
3334
max = position.max(dim=0)[0]

0 commit comments

Comments
 (0)