fchollet / deep-learning-with-python-notebooks

Jupyter notebooks for the code samples of the book "Deep Learning with Python"
MIT License
18.61k stars 8.63k forks source link

K.gradients (chapter -8) #169

Open Raghav-Bell opened 3 years ago

Raghav-Bell commented 3 years ago

I am implementing "Deep Dream" but got an error . code: grads = K.gradients(loss,dream)[0] Error : tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead. I have tried every method describe here : But nothing worked for me.