MCPcopy
hub / github.com/Pointcept/PointTransformerV3 / batch2offset

Function batch2offset

model.py:44–45  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

42
43@torch.inference_mode()
44def batch2offset(batch):
45 return torch.cumsum(batch.bincount(), dim=0).long()
46
47
48class Point(Dict):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected