From 7308c1e867dc552d703d2e0a11b2663d5549c3e8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Jul 2023 12:03:04 -0700 Subject: [PATCH] build(deps): bump tensorflow-cpu from 2.8.4 to 2.11.1 in /openfl-workspace/keras_nlp_gramine_ready (#769) * build(deps): bump tensorflow-cpu Bumps [tensorflow-cpu](https://github.com/tensorflow/tensorflow) from 2.8.4 to 2.11.1. - [Release notes](https://github.com/tensorflow/tensorflow/releases) - [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md) - [Commits](https://github.com/tensorflow/tensorflow/compare/v2.8.4...v2.11.1) --- updated-dependencies: - dependency-name: tensorflow-cpu dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Use legacy RMSprop optimizer Signed-off-by: Patrick Foley --------- Signed-off-by: dependabot[bot] Signed-off-by: Patrick Foley Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patrick Foley Signed-off-by: Parth Mandaliya --- openfl-workspace/keras_nlp_gramine_ready/requirements.txt | 2 +- openfl-workspace/keras_nlp_gramine_ready/src/nlp_taskrunner.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openfl-workspace/keras_nlp_gramine_ready/requirements.txt b/openfl-workspace/keras_nlp_gramine_ready/requirements.txt index e9cc99999cc..d0fe0d1d246 100644 --- a/openfl-workspace/keras_nlp_gramine_ready/requirements.txt +++ b/openfl-workspace/keras_nlp_gramine_ready/requirements.txt @@ -1 +1 @@ -tensorflow-cpu==2.8.4 +tensorflow-cpu==2.11.1 diff --git a/openfl-workspace/keras_nlp_gramine_ready/src/nlp_taskrunner.py b/openfl-workspace/keras_nlp_gramine_ready/src/nlp_taskrunner.py index e70751ed301..2db741cee00 100644 --- a/openfl-workspace/keras_nlp_gramine_ready/src/nlp_taskrunner.py +++ b/openfl-workspace/keras_nlp_gramine_ready/src/nlp_taskrunner.py @@ -42,7 +42,8 @@ def build_model(latent_dim, num_encoder_tokens, num_decoder_tokens, **kwargs): model = keras.Model([encoder_inputs, decoder_inputs], decoder_outputs) model.compile( - optimizer='rmsprop', loss='categorical_crossentropy', metrics=['accuracy'] + optimizer=keras.optimizers.legacy.RMSprop(), + loss='categorical_crossentropy', metrics=['accuracy'] ) return model