MCPcopy Create free account
hub / github.com/Vchitect/Latte / __init__

Method __init__

tools/utils/layers.py:232–237  ·  view source on GitHub ↗
(self, cfg: DictConfig, channel_dim: int, motion_v_dim: int)

Source from the content-addressed store, hash-verified

230@persistence.persistent_class
231class TemporalInput(nn.Module):
232 def __init__(self, cfg: DictConfig, channel_dim: int, motion_v_dim: int):
233 super().__init__()
234
235 self.cfg = cfg
236 self.motion_v_dim = motion_v_dim
237 self.const = nn.Parameter(torch.randn(1, channel_dim, 4, 4))
238
239 def get_dim(self):
240 return self.motion_v_dim + self.const.shape[1]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected