(self, x: Tensor, *, cond: Optional[Tensor] = None)
| 467 | |
| 468 | @beartype |
| 469 | def forward(self, x: Tensor, *, cond: Optional[Tensor] = None): |
| 470 | maybe_cond_kwargs = dict(cond=cond) if exists(cond) else dict() |
| 471 | |
| 472 | x = self.norm(x, **maybe_cond_kwargs) |
| 473 | return self.net(x) |
| 474 | |
| 475 | |
| 476 | # discriminator with anti-aliased downsampling (blurpool Zhang et al.) |