I installed all the dependencies and ran the code , I have this error
File "/home/lnuser/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/gradients_util.py", line 504, 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.
I changed the line and added GradientTape but still the code does not work
I installed all the dependencies and ran the code , I have this error
File "/home/lnuser/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/gradients_util.py", line 504, 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.
I changed the line and added GradientTape but still the code does not work