Skip to content

Commit

Permalink
Support for Tensorflow 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Aug 23, 2024
1 parent 6f3b952 commit 593cb00
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,32 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
tensorflow: [2.6, 2.7, 2.8, 2.9, '2.10', '2.11', '2.12', '2.13']

tensorflow: [2.6, 2.7, 2.8, 2.9, '2.10', '2.11', '2.12', '2.13', '2.14']
python-version: [3.8, 3.11]
exclude:
- python-version: 3.8
tensorflow: 2.14
- python-version: 3.11
tensorflow: 2.6
- python-version: 3.11
tensorflow: 2.7
- python-version: 3.11
tensorflow: 2.8
- python-version: 3.11
tensorflow: 2.9
- python-version: 3.11
tensorflow: 2.10
- python-version: 3.11
tensorflow: 2.11
- python-version: 3.11
tensorflow: 2.13
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.8
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
Expand All @@ -71,7 +88,7 @@ jobs:
pytest --cov=opennmt --cov-report xml opennmt/tests
- name: Upload coverage report
if: matrix.tensorflow == '2.13'
if: matrix.tensorflow == '2.14'
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, 2.12, or 2.13
* TensorFlow 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, 2.12, 2.13 or 2.14.

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, 2.12, or 2.13
* TensorFlow 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, 2.12, 2.13 or 2.14.

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.32.0"

INCLUSIVE_MIN_TF_VERSION = "2.6.0"
EXCLUSIVE_MAX_TF_VERSION = "2.14.0"
EXCLUSIVE_MAX_TF_VERSION = "2.15.0"


def _check_tf_version():
Expand Down

0 comments on commit 593cb00

Please sign in to comment.