(offset)
| 27 | |
| 28 | @torch.inference_mode() |
| 29 | def 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() |
no outgoing calls
no test coverage detected