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

Fix CI issue by pinning Keras version to match with TF #362

Merged
merged 2 commits into from
Nov 4, 2021

Conversation

CNugteren
Copy link
Contributor

CI was failing since yesterday because of a mismatching Keras version as suggested on SO. By explicitly installing keras==2.6.0 it is resolved. It was caused by keras 2.7 being released yesterday (https://pypi.org/project/keras/#history) and since we don't pin it this caused issues.

@CNugteren CNugteren requested a review from a team November 4, 2021 12:41
@CNugteren CNugteren enabled auto-merge (squash) November 4, 2021 13:03
@@ -32,6 +32,9 @@ jobs:
- name: Fix TFDS for older TF versions
run: pip install tensorflow_datasets==3.2.*
if: matrix.tf-version == '1.15.5' || matrix.tf-version == '2.0.4'
- name: Pin Keras for older TF versions
run: pip install keras==2.6.0
if: matrix.tf-version <= '2.6.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this only a problem for 2.6 or others too?

Copy link
Contributor Author

@CNugteren CNugteren Nov 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a problem with any TF version < 2.7 in combination with Keras 2.7. So by pinning to Keras 2.6 for older TF versions we should be fine.

@CNugteren CNugteren merged commit 1918c8e into main Nov 4, 2021
@CNugteren CNugteren deleted the fix_ci_by_pinning_keras branch November 4, 2021 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants