MCPcopy Create free account
hub / github.com/apple/ml-sharp / OutputWriter

Class OutputWriter

src/sharp/utils/io.py:170–179  ·  view source on GitHub ↗

Protocol for writing output to disk.

Source from the content-addressed store, hash-verified

168
169
170class OutputWriter(Protocol):
171 """Protocol for writing output to disk."""
172
173 def add_frame(self, image: torch.Tensor, depth: torch.Tensor) -> None:
174 """Add a single frame to output."""
175 ...
176
177 def close(self) -> None:
178 """Finish writing."""
179 ...
180
181
182class VideoWriter(OutputWriter):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected