(self)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected