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

Migrate hparams plugin to Keras 3 and remove Keras 2 from requirements.txt #6759

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

bmd3k
Copy link
Contributor

@bmd3k bmd3k commented Feb 15, 2024

We must still install keras 2 as part of CI in order to successfully run graph plugin tests.

Copy link
Member

@yatbear yatbear left a comment

Choose a reason for hiding this comment

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

Thank you!!

@@ -46,12 +38,12 @@ def _initialize_model(self, writer):
"optimizer": "adam",
HP_DENSE_NEURONS: 8,
}
self.model = keras.models.Sequential(
self.model = tf.keras.models.Sequential(
Copy link
Member

Choose a reason for hiding this comment

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

Just curious but I haven't tested this myself - does this need to be changed to tf.keras.Sequential : https://keras.io/api/models/sequential/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at the source tf.keras.model.Sequential and tf.keras.Sequential appear to point to the same thing.

@bmd3k bmd3k merged commit 8a99668 into tensorflow:master Feb 15, 2024
13 checks passed
bmd3k added a commit to bmd3k/tensorboard that referenced this pull request Feb 16, 2024
…s.txt (tensorflow#6759)

We must still install keras 2 as part of CI in order to successfully run
graph plugin tests.
bmd3k added a commit that referenced this pull request Feb 16, 2024
…s.txt (#6759)

We must still install keras 2 as part of CI in order to successfully run
graph plugin tests.
bmd3k added a commit that referenced this pull request Mar 4, 2024
#6759 modified _keras_test.py to work with Keras 3 but it did not import
correctly into the internal repository. It was therefore reverted in
#6767.

This changes the test to work both in the oss and internal repos.

Googlers, see cl/612511563 for sample import results.
AnuarTB pushed a commit to AnuarTB/tensorboard that referenced this pull request May 3, 2024
tensorflow#6759 modified _keras_test.py to work with Keras 3 but it did not import
correctly into the internal repository. It was therefore reverted in
tensorflow#6767.

This changes the test to work both in the oss and internal repos.

Googlers, see cl/612511563 for sample import results.
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.

None yet

2 participants