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

Method forward

src/sharp/models/gaussian_decoder.py:107–117  ·  view source on GitHub ↗

Apply SkipConvBackbone to image.

(
        self,
        input_features: torch.Tensor,
        encodings: list[torch.Tensor] | None = None,
    )

Source from the content-addressed store, hash-verified

105 )
106
107 def forward(
108 self,
109 input_features: torch.Tensor,
110 encodings: list[torch.Tensor] | None = None,
111 ) -> ImageFeatures:
112 """Apply SkipConvBackbone to image."""
113 output = self.conv(input_features)
114 return ImageFeatures(
115 texture_features=output,
116 geometry_features=output,
117 )
118
119 @property
120 def stride(self) -> int:

Callers

nothing calls this directly

Calls 1

ImageFeaturesClass · 0.85

Tested by

no test coverage detected