Hi,
recently I am learning the implementation of GAN with pytorch.
In the official version of PYTORCH LIGHTNING BASIC GAN TUTORIAL 2, two optimizers are used to train generator and discriminator as following.

    opt_g = torch.optim.Adam(self.generator.parameters(), lr=lr, betas=(b1, b2))
    opt_d = torch.optim.Adam(self.discriminator.parameters(), lr=lr, betas=(b1, b2))


What happen if only one Adam is used as following,

opt_g_d = torch.optim.Adam(
{‘params’: self.generator.parameters()},
{‘params’: self.discriminator.parameters()}, lr=lr, betas=(b1, b2))