The original generator loss, log(1 - D(G(z))), saturates when the discriminator is confident, leaving the generator with almost no gradient. The paper's non-saturating variant maximizes log D(G(z)) instead, which gives a strong signal early in training.
Implement gan_generator_loss(d_fake), returning -mean(log D(G(z))).
Take the log of the discriminator's output on fake samples, average, and negate.
No results yet
Run your code to check it against the examples, or submit to run every test.