(self, x, c)
| 580 | self.adaLN_modulation = torch.nn.Sequential(torch.nn.SiLU(), torch.nn.Linear(hidden_size, 2 * hidden_size)) |
| 581 | |
| 582 | def forward(self, x, c): |
| 583 | shift, scale = self.adaLN_modulation(c).chunk(2, dim=1) |
| 584 | x = modulate(self.norm_final(x), shift=shift, scale=scale) |
| 585 | x = self.linear(x) |
| 586 | return x |
| 587 | |
| 588 | |
| 589 | class HunyuanVideoDiT(torch.nn.Module): |
nothing calls this directly
no test coverage detected