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

Function offset2bincount

model.py:29–32  ·  view source on GitHub ↗
(offset)

Source from the content-addressed store, hash-verified

27
28@torch.inference_mode()
29def offset2bincount(offset):
30 return torch.diff(
31 offset, prepend=torch.tensor([0], device=offset.device, dtype=torch.long)
32 )
33
34
35@torch.inference_mode()

Callers 3

offset2batchFunction · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected