Skip to content

Commit

Permalink
Pin tensorflow-text to go with tensorflow (#22362)
Browse files Browse the repository at this point in the history
* Pin tensorflow-text to go with tensorflow

* Make it more convenient to pin TensorFlow

* setup don't like f-strings
  • Loading branch information
sgugger authored Mar 24, 2023
1 parent 0120347 commit 6587125
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/tensorflow/_tests_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tensorflow<2.11
tensorflow<2.12
tensorboard
scikit-learn
seqeval
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@
"starlette",
"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.12",
"tensorflow>=2.4,<2.12",
"tensorflow-text",
"tensorflow-text<2.12",
"tf2onnx",
"timeout-decorator",
"timm",
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/dependency_versions_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"sudachidict_core": "sudachidict_core>=20220729",
"tensorflow-cpu": "tensorflow-cpu>=2.4,<2.12",
"tensorflow": "tensorflow>=2.4,<2.12",
"tensorflow-text": "tensorflow-text",
"tensorflow-text": "tensorflow-text<2.12",
"tf2onnx": "tf2onnx",
"timeout-decorator": "timeout-decorator",
"timm": "timm",
Expand Down

0 comments on commit 6587125

Please sign in to comment.