Machine Learning, Deep Learning, Artificial Intelligence, Neural Networks, Open Source.
Time to look at the training code. This time, we cannot use the Module.fit() API. We have to write a custom training loop taking into account the fact that we’re going to use the Discriminator gradients to update the Generator. Here are the steps: Generate a batch of random samples (line 4).