Generator loss

The generator loss is also the same as for the vanilla GAN:

We can compute it by using the following code:

G_loss = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(logits=D_logits_fake, labels=tf.ones_like(D_logits_fake)))
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset