MCPcopy Create free account
hub / github.com/TencentARC/Pixal3D / seqlen

Method seqlen

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

Source from the content-addressed store, hash-verified

85
86 @property
87 def seqlen(self) -> torch.LongTensor:
88 if 'seqlen' not in self._cache:
89 self._cache['seqlen'] = torch.tensor([l.stop - l.start for l in self.layout], dtype=torch.long, device=self.device)
90 return self._cache['seqlen']
91
92 @property
93 def cum_seqlen(self) -> torch.LongTensor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected