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

Function offset2batch

model.py:36–40  ·  view source on GitHub ↗
(offset)

Source from the content-addressed store, hash-verified

34
35@torch.inference_mode()
36def offset2batch(offset):
37 bincount = offset2bincount(offset)
38 return torch.arange(
39 len(bincount), device=offset.device, dtype=torch.long
40 ).repeat_interleave(bincount)
41
42
43@torch.inference_mode()

Callers 1

__init__Method · 0.85

Calls 1

offset2bincountFunction · 0.85

Tested by

no test coverage detected