MCPcopy
hub / github.com/TencentARC/Pixal3D / seqlen

Method seqlen

pixal3d/modules/sparse/basic.py:543–548  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

541
542 @property
543 def seqlen(self) -> torch.LongTensor:
544 seqlen = self.get_spatial_cache('seqlen')
545 if seqlen is None:
546 seqlen = torch.tensor([l.stop - l.start for l in self.layout], dtype=torch.long, device=self.device)
547 self.register_spatial_cache('seqlen', seqlen)
548 return seqlen
549
550 @property
551 def cum_seqlen(self) -> torch.LongTensor:

Callers

nothing calls this directly

Calls 2

get_spatial_cacheMethod · 0.95

Tested by

no test coverage detected