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

Class SafeOpenReader

scripts/fuse_moss_tts_delay_with_codec.py:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53class SafeOpenReader(Protocol):
54 def __enter__(self) -> "SafeOpenReader": ...
55
56 def __exit__(
57 self,
58 exc_type: type[BaseException] | None,
59 exc_value: BaseException | None,
60 traceback: TracebackType | None,
61 ) -> bool | None: ...
62
63 def keys(self) -> Iterable[str]: ...
64
65 def get_tensor(self, key: str) -> torch.Tensor: ...
66
67
68def _open_safe_reader(path: Path) -> SafeOpenReader:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected