(self, x, c)
| 322 | ) |
| 323 | @torch.compile |
| 324 | def forward(self, x, c): |
| 325 | shift, scale = self.adaLN_modulation(c).chunk(2, dim=1) |
| 326 | x = modulate(self.norm_final(x), shift, scale) |
| 327 | x = self.linear(x) |
| 328 | return x |
| 329 | |
| 330 | |
| 331 | class LightningDiT(nn.Module): |
nothing calls this directly
no test coverage detected