Skip to content

Commit

Permalink
Support TensorFlow 2.13 (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumekln committed Aug 4, 2023
1 parent a943e82 commit c891585
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
tensorflow: [2.6, 2.7, 2.8, 2.9, '2.10', '2.11', '2.12']
tensorflow: [2.6, 2.7, 2.8, 2.9, '2.10', '2.11', '2.12', '2.13']

steps:
- uses: actions/checkout@v3
Expand All @@ -71,7 +71,7 @@ jobs:
pytest --cov=opennmt --cov-report xml opennmt/tests
- name: Upload coverage report
if: matrix.tensorflow == '2.12'
if: matrix.tensorflow == '2.13'
uses: codecov/codecov-action@v3


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ OpenNMT-tf also implements most of the techniques commonly used to train and eva
OpenNMT-tf requires:

* Python 3.7 or above
* TensorFlow 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, or 2.12
* TensorFlow 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, 2.12, or 2.13

We recommend installing it with `pip`:

Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
OpenNMT-tf requires:

* Python 3.7 or above
* TensorFlow 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, or 2.12
* TensorFlow 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, 2.12, or 2.13

For GPU support, please read the [TensorFlow documentation](https://www.tensorflow.org/install/gpu) for additional software and hardware requirements.

Expand Down
2 changes: 1 addition & 1 deletion opennmt/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__version__ = "2.31.0"

INCLUSIVE_MIN_TF_VERSION = "2.6.0"
EXCLUSIVE_MAX_TF_VERSION = "2.13.0"
EXCLUSIVE_MAX_TF_VERSION = "2.14.0"


def _check_tf_version():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_project_version():
"pyyaml>=5.3,<7",
"rouge>=1.0,<2",
"sacrebleu>=1.5.0,<3",
"tensorflow-addons>=0.16,<0.21",
"tensorflow-addons>=0.16,<0.22",
],
extras_require={
"tensorflow": [
Expand Down

0 comments on commit c891585

Please sign in to comment.