GANs-in-Action / gans-in-action

Companion repository to GANs in Action: Deep learning with Generative Adversarial Networks
1.01k stars 420 forks source link

Added Eager execution command #13

Open Hardly-Human opened 3 years ago

Hardly-Human commented 3 years ago

vae.fit() method is resulting in an error when executed in the Colaboratory environment.

Error : _SymbolicException: Inputs to eager execution function cannot be Keras symbolic tensors, but found [<tf.Tensor 'log-variance/BiasAdd_3:0' shape=(None, 2) dtype=float32>, <tf.Tensor 'mean/BiasAdd_3:0' shape=(None, 2) dtype=float32>]

Solution: Enabled Eager execution mode to allow Keras symbolic tensors.

Changing mode to Eager Execution......

tf.config.experimental_run_functions_eagerly(True)