Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Tensorflow 2.14 #1011

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading