(self)
| 577 | |
| 578 | @property |
| 579 | def device(self) -> torch.device: |
| 580 | try: |
| 581 | return next(self.audio_tokenizer.parameters()).device |
| 582 | except StopIteration: |
| 583 | return torch.device("cpu") |
| 584 | |
| 585 | def __enter__(self) -> "StatefulCodecDecoder": |
| 586 | self._ctx = self.audio_tokenizer.streaming(batch_size=1) |
no outgoing calls
no test coverage detected