Question 14
During GAN training, the following code is used to update the discriminator:
However the code doesnt work as intended. Identify the flaws which are preventing to make the code work as intended.
The reset grad method to erase previous gradients needs to be added.
The fake loss should use fake_labels instead of real_labels.
Ratio of the two losses should be taken to compute the final descriminator loss.