MCPcopy Create free account
hub / github.com/cvg/NoPoSplat / Encoder

Class Encoder

src/model/encoder/encoder.py:12–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class Encoder(nn.Module, ABC, Generic[T]):
13 cfg: T
14
15 def __init__(self, cfg: T) -> None:
16 super().__init__()
17 self.cfg = cfg
18
19 @abstractmethod
20 def forward(
21 self,
22 context: BatchedViews,
23 ) -> Gaussians:
24 pass
25
26 def get_data_shim(self) -> DataShim:
27 """The default shim doesn't modify the batch."""
28 return lambda x: x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected