Open
Conversation
ImportError: cannot import name 'get_config' from https://stackoverflow.com/questions/66964492/importerror-cannot-import-name-get-config-from-tensorflow-python-eager-conte
ValueError: GRU(reset_after=False) is not compatible with GRU(reset_after=True) need to down grade Tensorflow 1.15 and install all dependencies according to thins with this version. This error is occurring probably because you are using TF 2.2 and in that version the tf.keras.layers.GRU is set to reset_after = false. I tried changing it but it wasn't possible. Just ended up downgrading to TF 1.15 and install all other dependencies in sync with that version. https://githubmemory.com/repo/rizkiarm/LipNet/issues/109
ImportError: cannot import name 'get_config' from https://stackoverflow.com/questions/66964492/importerror-cannot-import-name-get-config-from-tensorflow-python-eager-conte
ImportError: cannot import name 'get_config' from https://stackoverflow.com/questions/66964492/importerror-cannot-import-name-get-config-from-tensorflow-python-eager-conte
ImportError: cannot import name 'get_config' from https://stackoverflow.com/questions/66964492/importerror-cannot-import-name-get-config-from-tensorflow-python-eager-conte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
keras to tensorflow.keras
there is version issue between keras, tensorflow, keras.GRU
Keras requires TensorFlow 2.2 or higher. Install TensorFlow via pip install tensorflow
keras.GRU requires downgrade TensorFlow to 1.15 and install all dependencies
https://stackoverflow.com/questions/62690377/tensorflow-compatibility-with-keras
https://stackoverflow.com/questions/66964492/importerror-cannot-import-name-get-config-from-tensorflow-python-eager-conte
ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'
=> import keras.xxxx to import tensorflow.keras.xxxx