Apply projection module.
(self, encodings: list[torch.Tensor])
| 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 | |
| 81 | class MonodepthFeatureEncoder(BaseEncoder): |
nothing calls this directly
no outgoing calls
no test coverage detected