In this section, we are going to implement training functions that are compatible with the Progressive Growing of GANs methodology. These training and logging functions will be used to train the discriminator and the generator, which will also be implemented in this section.
We will also implement helper functions in order to make it easier to compute our loss function based on the Wasserstein GAN with Gradient Penalty.