From 593cb00259509788f44a27f9c0e829ef4a38d6fc Mon Sep 17 00:00:00 2001 From: Jordi Mas Date: Fri, 23 Aug 2024 18:25:26 +0200 Subject: [PATCH] Support for Tensorflow 2.14 --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++----- README.md | 2 +- docs/installation.md | 2 +- opennmt/version.py | 2 +- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 049edab31..62ad6a038 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | @@ -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 diff --git a/README.md b/README.md index 1975b61f6..dd28b8c39 100644 --- a/README.md +++ b/README.md @@ -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`: diff --git a/docs/installation.md b/docs/installation.md index 45ff9887e..15eed0d6d 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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. diff --git a/opennmt/version.py b/opennmt/version.py index 018642f55..8b400c490 100644 --- a/opennmt/version.py +++ b/opennmt/version.py @@ -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():