Open sunskyhsh opened 5 years ago
I had the same issue, but it was actually the error with computing the discriminator loss. I called cross entropy for real and fake scores, than added those two and used tf.math.reduce_mean after addition, but if you look at the definition of discriminator loss, you need to sum the averaged cross entropy losses computed separately for real and fake images.
I was doing Assignment 3 of 2018 version, but I ran into one error in the function run_a_gan:
Then I checked the size of each batch and found that the size of the last batch is 96 rather than the expected 128. I guess others may run into this error too, and then they can find the cause here.