def METHOD_NAME(self, input: Tensor, target: Tensor) -> Tensor:
    self.requires_grad(self.generator, True)
    self.requires_grad(self.discriminator, False)
    preds, _ = self.generator(input)
    fake_pred = self.discriminator(preds)
    g_loss = self.g_nonsaturating_loss(fake_pred, preds, target, input)
    return g_loss