We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fed36b1 commit fb3d8a8Copy full SHA for fb3d8a8
torch_cluster/functions/grid.py
@@ -21,7 +21,7 @@ def grid_cluster(position, size, batch=None, offset=None, fake_nodes=False):
21
position = torch.cat([batch, position], dim=-1)
22
size = torch.cat([size.new(1).fill_(1), size], dim=-1)
23
24
- # Translate to minimal positive positions.
+ # Translate to minimal positive positions if no offset is passed.
25
if offset is None:
26
min = position.min(dim=-2, keepdim=True)[0]
27
position = position - min
0 commit comments