Skip to content

Commit d36be18

Browse files
authored
Support TensorFlow 2.6 (#873)
1 parent 16cc45c commit d36be18

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: ubuntu-latest
4545
strategy:
4646
matrix:
47-
tensorflow: [2.3, 2.4, 2.5]
47+
tensorflow: [2.3, 2.4, 2.5, 2.6]
4848

4949
steps:
5050
- uses: actions/checkout@v2
@@ -71,7 +71,7 @@ jobs:
7171
pytest --cov=opennmt --cov-report xml opennmt/tests
7272
7373
- name: Upload coverage report
74-
if: matrix.tensorflow == '2.5'
74+
if: matrix.tensorflow == '2.6'
7575
run: |
7676
bash <(curl -s https://codecov.io/bash)
7777

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ OpenNMT-tf also implements most of the techniques commonly used to train and eva
9797
OpenNMT-tf requires:
9898

9999
* Python 3.5 or above
100-
* TensorFlow 2.3, 2.4, or 2.5
100+
* TensorFlow 2.3, 2.4, 2.5, or 2.6
101101

102102
We recommend installing it with `pip`:
103103

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
OpenNMT-tf requires:
66

77
* Python 3.5 or above
8-
* TensorFlow 2.3, 2.4, or 2.5
8+
* TensorFlow 2.3, 2.4, 2.5, or 2.6
99

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

opennmt/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
__version__ = "2.20.1"
44

55
INCLUSIVE_MIN_TF_VERSION = "2.3.0"
6-
EXCLUSIVE_MAX_TF_VERSION = "2.6.0"
6+
EXCLUSIVE_MAX_TF_VERSION = "2.7.0"
77

88

99
def _check_tf_version():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def get_project_version():
7070
"pyyaml>=5.3,<5.5",
7171
"rouge>=1.0,<2",
7272
"sacrebleu>=1.5.0,<2.1",
73-
"tensorflow-addons>=0.13,<0.14",
73+
"tensorflow-addons>=0.14,<0.15",
7474
],
7575
extras_require={
7676
"tensorflow": [

0 commit comments

Comments
 (0)