Machine Learning, Deep Learning, Artificial Intelligence, Neural Networks, Open Source.
Forward the batch through the Generator and grab the resulting images (lines 6–7). Label these images as fake, forward them through the Discriminator and run back propagation (lines 10–12) : this lets the Discriminator learn to detect fake images. Save the Discriminator gradients but do not update