What's the output of Discriminator(interpolates)[0] on the code below in gan_language.py?
Knowing that gen_cost = -tf.reduce_mean(Discriminator(fake_inputs)), I assume that Discriminator(interpolates) returns the discriminator evaluation's of the first batch in the interpolates, though this doesn't seem to make any sense.
Good catch! We missed this while cleaning up the code for release, it should just read gradients = tf.gradients(Discriminator(interpolates), [interpolates])[0]
What's the output of
Discriminator(interpolates)[0]
on the code below in gan_language.py? Knowing thatgen_cost = -tf.reduce_mean(Discriminator(fake_inputs))
, I assume thatDiscriminator(interpolates)
returns the discriminator evaluation's of the first batch in the interpolates, though this doesn't seem to make any sense.