Improved keras imports (#24448)

* An end to accursed version-specific imports

* No more K.is_keras_tensor() either

* Update dependency tables

* Use a cleaner call context function getter

* Add a cap to <2.14

* Add cap to examples requirements too
This commit is contained in:
Matt
2023-06-23 19:09:34 +01:00
committed by GitHub
parent 1e9da2b0a6
commit 8e164c5400
5 changed files with 14 additions and 33 deletions

View File

@@ -168,9 +168,9 @@ _deps = [
"sudachipy>=0.6.6",
"sudachidict_core>=20220729",
# TensorFlow pin. When changing this value, update examples/tensorflow/_tests_requirements.txt accordingly
"tensorflow-cpu>=2.4,<2.13",
"tensorflow>=2.4,<2.13",
"tensorflow-text<2.13",
"tensorflow-cpu>=2.6,<2.14",
"tensorflow>=2.6,<2.14",
"tensorflow-text<2.14",
"tf2onnx",
"timeout-decorator",
"timm",