You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "Neural-Style-Transfer/INetwork.py", line 524, in
grads = K.gradients(loss, combination_image)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/backend.py", line 3969, in gradients
loss, variables, colocate_gradients_with_ops=True)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gradients_impl.py", line 172, in gradients
unconnected_gradients)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gradients_util.py", line 491, in _GradientsHelper
raise RuntimeError("tf.gradients is not supported when eager execution " RuntimeError: tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead.
The text was updated successfully, but these errors were encountered:
shahmanan5811
changed the title
tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead.
Replace tf.gradients with tf.GradientTape.
Aug 28, 2020
shahmanan5811
changed the title
Replace tf.gradients with tf.GradientTape.
Replace tf.gradients with tf.GradientTape : RuntimeError
Aug 28, 2020
Traceback (most recent call last):
File "Neural-Style-Transfer/INetwork.py", line 524, in
grads = K.gradients(loss, combination_image)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/backend.py", line 3969, in gradients
loss, variables, colocate_gradients_with_ops=True)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gradients_impl.py", line 172, in gradients
unconnected_gradients)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/gradients_util.py", line 491, in _GradientsHelper
raise RuntimeError("tf.gradients is not supported when eager execution "
RuntimeError: tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead.
The text was updated successfully, but these errors were encountered: