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 import of Keras #2420

Merged
merged 4 commits into from
Apr 23, 2024
Merged

Fix import of Keras #2420

merged 4 commits into from
Apr 23, 2024

Conversation

sampathweb
Copy link
Collaborator

@sampathweb sampathweb commented Apr 23, 2024

With the change in keras3 to use src and api folders, the from keras import * inside keras_cv/backend/keras.py doesn't import the src namespace.

To fix this -

  1. Renamed the keras.py to keras2.py
  2. Handle the import of keras in backend/__init__.py

This change has no impact to the users since its only required for accessing private files in Tests.

@sampathweb sampathweb added the kokoro:force-run Runs Tests on GPU label Apr 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Apr 23, 2024
@sampathweb sampathweb added the kokoro:force-run Runs Tests on GPU label Apr 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Apr 23, 2024
@sampathweb sampathweb added the kokoro:force-run Runs Tests on GPU label Apr 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Apr 23, 2024
@sampathweb sampathweb added the kokoro:force-run Runs Tests on GPU label Apr 23, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Apr 23, 2024
@fchollet fchollet merged commit 60ebdf6 into keras-team:master Apr 23, 2024
10 checks passed
@sampathweb sampathweb deleted the fix-keras-import branch April 23, 2024 18:12
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.

3 participants