grid.py 181 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
5
6
from .utils.ffi import grid


def grid_cluster(pos, size, batch=None, start=None, end=None):
    pos = pos.unsqueeze(-1) if pos.dim() == 1 else pos
    grid(None, None, None, None)