MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / device

Method device

moss_tts_local_v1.5/streaming.py:579–583  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers 7

__init__Method · 0.45
load_runtimeFunction · 0.45
build_processorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected