Open Garfield8377 opened 3 years ago
disable eager execution tf.compat.v1.disable_eager_execution()
any solutions!!!
Adding these two lines to network.py worked for me. Thanks to @Mohamed209
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
it works thanks a lot.
I had the same issue, but then got a cudNN error like this one. saying : Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above
solved everything by adding this to INetwork.py
import section
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
config = tf.compat.v1.ConfigProto()
config.gpu_options.allow_growth = True
tf.compat.v1.keras.backend.set_session(tf.compat.v1.Session(config=config))
hi i was run this on colab and when i run this cell:
i got this error: RuntimeError: tf.gradients is not supported when eager execution is enabled. Use tf.GradientTape instead. can someone tell me where i can use tf.GradientTape? thx