(self, x, c)
| 169 | ) |
| 170 | |
| 171 | def forward(self, x, c): |
| 172 | shift, scale = self.adaLN_modulation(c).chunk(2, dim=1) |
| 173 | x = modulate(self.norm_final(x), shift, scale) |
| 174 | x = self.linear(x) |
| 175 | return x |
| 176 | |
| 177 | |
| 178 | class DiT(nn.Module): |
nothing calls this directly
no test coverage detected