GDL_code icon indicating copy to clipboard operation
GDL_code copied to clipboard

GAN.py does not work when using tf.keras instead of the standalone keras

Open sfleisch opened this issue 6 years ago • 2 comments

Get: InvalidArgumentError: You must feed a value for placeholder tensor 'discriminator_input' with dtype float and shape [?,28,28,1] [[{{node discriminator_input}}]] [[{{node loss_1/model_loss/broadcast_weights/assert_broadcastable/is_valid_shape/has_valid_nonscalar_shape/has_invalid_dims/concat}}]]

I have not been able to trace this down other than it is in the generator model.

sfleisch avatar Sep 08 '19 04:09 sfleisch

I have just released a new tensorflow_2 branch which maps everything across to using Keras within tensorflow 2.0. Can you see if you still get the error on this branch?

davidADSP avatar Oct 14 '19 00:10 davidADSP

The code in the tensorflow_2 branch works with the 2.0.0 release version.

sfleisch avatar Oct 20 '19 19:10 sfleisch