MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / __init__

Method __init__

DataLoader/Transform.py:19–26  ·  view source on GitHub ↗
(self, config: SimpleNamespace | None | DynamicConfigSpec)

Source from the content-addressed store, hash-verified

17
18class 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: ...

Callers

nothing calls this directly

Calls 2

build_dynamic_configFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected