Skip to content

Commit fb3d8a8

Browse files
committed
typo
1 parent fed36b1 commit fb3d8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_cluster/functions/grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def grid_cluster(position, size, batch=None, offset=None, fake_nodes=False):
2121
position = torch.cat([batch, position], dim=-1)
2222
size = torch.cat([size.new(1).fill_(1), size], dim=-1)
2323

24-
# Translate to minimal positive positions.
24+
# Translate to minimal positive positions if no offset is passed.
2525
if offset is None:
2626
min = position.min(dim=-2, keepdim=True)[0]
2727
position = position - min

0 commit comments

Comments
 (0)