(self, config: SimpleNamespace | None | DynamicConfigSpec)
| 17 | |
| 18 | class IDataTransform(Generic[T_from, T_to], ABC, ConfigTestableSubclass, torch.nn.Module): |
| 19 | def __init__(self, config: SimpleNamespace | None | DynamicConfigSpec) -> None: |
| 20 | super().__init__() |
| 21 | if config is None: |
| 22 | self.config = SimpleNamespace() |
| 23 | elif isinstance(config, SimpleNamespace): |
| 24 | self.config = config |
| 25 | else: |
| 26 | self.config, _ = build_dynamic_config(config) |
| 27 | |
| 28 | @abstractmethod |
| 29 | def forward(self, frame: T_from) -> T_to: ... |
nothing calls this directly
no test coverage detected