(self, x, c=None)
| 327 | ) |
| 328 | |
| 329 | def forward(self, x, c=None): |
| 330 | if c is not None: |
| 331 | shift, scale = self.adaLN_modulation(c).chunk(2, dim=1) |
| 332 | x = modulate(self.norm_final(x), shift, scale) |
| 333 | x = self.linear(x) |
| 334 | else: |
| 335 | x = self.norm_final(x) |
| 336 | x = self.linear(x) |
| 337 | return x |
| 338 | |
| 339 | |
| 340 | class Block(nn.Module): |
nothing calls this directly
no test coverage detected