Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keras to tensorflow.keras #46

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zlaepek
Copy link

@zlaepek zlaepek commented Nov 2, 2021

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

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
@zlaepek zlaepek changed the title Zlaepek keras to tensorflow.keras keras to tensorflow.keras Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant