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.
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.