Pin Keras for now (#26904)

* Pin Keras for now out of paranoia

* Add the keras pin to _tests_requirements.txt too

* Make sure the Keras version matches the TF one

* make fixup
This commit is contained in:
Matt 2023-10-19 14:39:31 +01:00 committed by GitHub
parent 73dc23f786
commit cbd278f0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
tensorflow<2.15
keras<2.15
tensorboard
scikit-learn
seqeval

View File

@ -125,6 +125,8 @@ _deps = [
"jaxlib>=0.4.1,<=0.4.13",
"jieba",
"kenlm",
# Keras pin - this is to make sure Keras 3 doesn't destroy us. Remove or change when we have proper support.
"keras<2.15",
"keras-nlp>=0.3.1",
"librosa",
"nltk",

View File

@ -32,6 +32,7 @@ deps = {
"jaxlib": "jaxlib>=0.4.1,<=0.4.13",
"jieba": "jieba",
"kenlm": "kenlm",
"keras": "keras<2.15",
"keras-nlp": "keras-nlp>=0.3.1",
"librosa": "librosa",
"nltk": "nltk",