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

Method forward

src/sharp/models/encoders/monodepth_encoder.py:74–78  ·  view source on GitHub ↗

Apply projection module.

(self, encodings: list[torch.Tensor])

Source from the content-addressed store, hash-verified

72 )
73
74 def forward(self, encodings: list[torch.Tensor]) -> list[torch.Tensor]:
75 """Apply projection module."""
76 if len(encodings) != len(self.convs):
77 raise ValueError("Number of encodings must be equal to number of projections.")
78 return [conv(encoding) for conv, encoding in zip(self.convs, encodings)]
79
80
81class MonodepthFeatureEncoder(BaseEncoder):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected