adeshpande3 / Tensorflow-Programs-and-Tutorials

Implementations of CNNs, RNNs, GANs, etc
1.05k stars 322 forks source link

GAN code is not compatible with the latest TensorFlow version #1

Closed savan77 closed 7 years ago

savan77 commented 7 years ago

1 - Optimizer other than GradientDescentOptimizer will generate a ValueError. Can be solved by adding following line before optimizing. with tf.variable_scope(tf.get_variable_scope(), reuse=False):. There might be other solutions for this.

2 - Loss function takes named parameters. i.e sigmoid_cross_entropy_with_logits(logits=Dx, labels=tf.ones_like(Dx)

adeshpande3 commented 7 years ago

Thanks for the catch. Just pushed the changes