Method
__init__
(self, cfg: DictConfig, channel_dim: int, motion_v_dim: int)
Source from the content-addressed store, hash-verified
| 230 | @persistence.persistent_class |
| 231 | class 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
Tested by
no test coverage detected