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

Method forward

src/sharp/models/encoders/base_encoder.py:20–21  ·  view source on GitHub ↗

Encode input image into multi-resolution encodings.

(self, image: torch.Tensor)

Source from the content-addressed store, hash-verified

18
19 @abc.abstractmethod
20 def forward(self, image: torch.Tensor) -> list[torch.Tensor]:
21 """Encode input image into multi-resolution encodings."""
22
23 def internal_resolution(self) -> int:
24 """Internal resolution of the encoder."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected