Skip to content

Commit c80423a

Browse files
bhackseanpmorgan
andauthored
Build with TF 2.11.0 (#2782)
* Build for TF 2.11.0 Co-authored-by: Sean Morgan <[email protected]>
1 parent 1e35db9 commit c80423a

14 files changed

+29
-29
lines changed

.github/workflows/make_wheel_macOS_arm64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e -x
33
export TF_NEED_CUDA=0
44

55
python --version
6-
python -m pip install --default-timeout=1000 delocate==0.10.2 wheel setuptools tensorflow==$TF_VERSION
6+
python -m pip install --default-timeout=1000 delocate==0.10.3 wheel setuptools tensorflow==$TF_VERSION
77

88
python configure.py
99
# Setting DYLD_LIBRARY_PATH to help delocate finding tensorflow after the rpath invalidation

.github/workflows/make_wheel_macOS_x86.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export TF_NEED_CUDA=0
44

55
# Install Deps
66
python --version
7-
python -m pip install --default-timeout=1000 delocate==0.10.2 wheel setuptools tensorflow==$TF_VERSION
7+
python -m pip install --default-timeout=1000 delocate==0.10.3 wheel setuptools tensorflow==$TF_VERSION
88

99
# Test
1010
bash ./tools/testing/build_and_run_tests.sh $SKIP_CUSTOM_OP_TESTS

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ jobs:
4242
# https://github.com/bazelbuild/bazel/issues/14232#issuecomment-1011247429
4343
os: ['macos-12', 'windows-2019', 'ubuntu-18.04']
4444
py-version: ['3.7', '3.8', '3.9', '3.10']
45-
tf-version: ['2.8.2', '2.9.1', '2.10.0']
45+
tf-version: ['2.9.3', '2.10.1', '2.11.0']
4646
cpu: ['x86']
4747
include:
4848
- os: 'macos-12'
4949
cpu: 'arm64'
50-
tf-version: '2.10.0'
50+
tf-version: '2.11.0'
5151
py-version: '3.8'
5252
- os: 'macos-12'
5353
cpu: 'arm64'
54-
tf-version: '2.10.0'
54+
tf-version: '2.11.0'
5555
py-version: '3.9'
5656
- os: 'macos-12'
5757
cpu: 'arm64'
58-
tf-version: '2.10.0'
58+
tf-version: '2.11.0'
5959
py-version: '3.10'
6060
fail-fast: false
6161
steps:
@@ -101,20 +101,20 @@ jobs:
101101
matrix:
102102
os: ['macOS', 'Windows', 'Linux']
103103
py-version: ['3.7', '3.8', '3.9', '3.10']
104-
tf-version: ['2.10.0']
104+
tf-version: ['2.11.0']
105105
cpu: ['x86']
106106
include:
107107
- os: 'macOS'
108108
cpu: 'arm64'
109-
tf-version: '2.10.0'
109+
tf-version: '2.11.0'
110110
py-version: '3.8'
111111
- os: 'macOS'
112112
cpu: 'arm64'
113-
tf-version: '2.10.0'
113+
tf-version: '2.11.0'
114114
py-version: '3.9'
115115
- os: 'macOS'
116116
cpu: 'arm64'
117-
tf-version: '2.10.0'
117+
tf-version: '2.11.0'
118118
py-version: '3.10'
119119
fail-fast: false
120120
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release'

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ conda activate my_dev_environement
173173
Just run from the root:
174174

175175
```bash
176-
pip install tensorflow==2.8
177-
# you can use "pip install tensorflow-cpu==2.10.0" too if you're not testing on gpu.
176+
pip install tensorflow==2.11.0
177+
# you can use "pip install tensorflow-cpu==2.11.0" too if you're not testing on gpu.
178178
pip install -e ./
179179
```
180180

@@ -262,7 +262,7 @@ If you need a custom C++/Cuda op for your test, compile your ops with
262262

263263
```bash
264264
python configure.py
265-
pip install tensorflow==2.10.0 -e ./ -r tools/install_deps/pytest.txt
265+
pip install tensorflow==2.11.0 -e ./ -r tools/install_deps/pytest.txt
266266
bash tools/install_so_files.sh # Linux/macos/WSL2
267267
sh tools/install_so_files.sh # PowerShell
268268
```
@@ -290,7 +290,7 @@ docker run --gpus all --rm -it -v ${PWD}:/addons -w /addons gcr.io/tensorflow-te
290290

291291
Configure:
292292
```bash
293-
python3 -m pip install tensorflow==2.10.0
293+
python3 -m pip install tensorflow==2.11.0
294294
python3 ./configure.py # Links project with TensorFlow dependency
295295
```
296296

@@ -329,7 +329,7 @@ quickly, as Bazel has great support for caching and distributed testing.
329329
To test with Bazel:
330330

331331
```bash
332-
python3 -m pip install tensorflow==2.10.0
332+
python3 -m pip install tensorflow==2.11.0
333333
python3 configure.py
334334
python3 -m pip install -r tools/install_deps/pytest.txt
335335
bazel test -c opt -k \

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ cuda_configure(name = "local_config_cuda")
2121

2222
http_archive(
2323
name = "org_tensorflow",
24-
sha256 = "b5a1bb04c84b6fe1538377e5a1f649bb5d5f0b2e3625a3c526ff3a8af88633e8",
25-
strip_prefix = "tensorflow-2.10.0",
24+
sha256 = "99c732b92b1b37fc243a559e02f9aef5671771e272758aa4aec7f34dc92dac48",
25+
strip_prefix = "tensorflow-2.11.0",
2626
urls = [
27-
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.10.0.tar.gz",
27+
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.11.0.tar.gz",
2828
],
2929
)
3030

tensorflow_addons/metrics/tests/streaming_correlations_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_keras_binary_classification_model(self, correlation_type):
132132
tf.function(metric.update_state)(y, preds)
133133
metric_value = tf.function(metric.result)()
134134
scipy_value = self.scipy_corr[correlation_type](preds[:, 0], y[:, 0])[0]
135-
np.testing.assert_almost_equal(metric_value, metric_history[-1], decimal=5)
135+
np.testing.assert_almost_equal(metric_value, metric_history[-1], decimal=6)
136136
np.testing.assert_almost_equal(metric_value, scipy_value, decimal=2)
137137

138138
@pytest.mark.parametrize("correlation_type", testing_types)

tensorflow_addons/utils/resource_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
import tensorflow as tf
2222

23-
INCLUSIVE_MIN_TF_VERSION_FOR_ABI_COMPATIBILITY = "2.10.0"
24-
EXCLUSIVE_MAX_TF_VERSION_FOR_ABI_COMPATIBILITY = "2.11.0"
23+
INCLUSIVE_MIN_TF_VERSION_FOR_ABI_COMPATIBILITY = "2.11.0"
24+
EXCLUSIVE_MAX_TF_VERSION_FOR_ABI_COMPATIBILITY = "2.12.0"
2525
abi_warning_already_raised = False
2626
SKIP_CUSTOM_OPS = False
2727

tensorflow_addons/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"""Define TensorFlow Addons version information."""
1616

1717
# Required TensorFlow version [min, max)
18-
INCLUSIVE_MIN_TF_VERSION = "2.8.0"
19-
EXCLUSIVE_MAX_TF_VERSION = "2.11.0"
18+
INCLUSIVE_MIN_TF_VERSION = "2.9.0"
19+
EXCLUSIVE_MAX_TF_VERSION = "2.12.0"
2020

2121
# We follow Semantic Versioning (https://semver.org/)
2222
_MAJOR_VERSION = "0"

tools/build_dev_container.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -x -e
44

55
docker build \
66
-f tools/docker/dev_container.Dockerfile \
7-
--build-arg TF_VERSION=2.10.0 \
7+
--build-arg TF_VERSION=2.11.0 \
88
--build-arg TF_PACKAGE=tensorflow \
99
--build-arg PY_VERSION=$PY_VERSION \
1010
--no-cache \

tools/docker/build_wheel.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#syntax=docker/dockerfile:1.1.5-experimental
22
ARG PY_VERSION
3-
FROM tensorflow/build:2.10-python$PY_VERSION as base_install
3+
FROM tensorflow/build:2.11-python$PY_VERSION as base_install
44

55
ENV TF_NEED_CUDA="1"
66
ARG PY_VERSION

tools/docker/cpu_tests.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#syntax=docker/dockerfile:1.1.5-experimental
22
FROM python:3.7 as build_wheel
33

4-
ARG TF_VERSION=2.10.0
4+
ARG TF_VERSION=2.11.0
55
RUN pip install --default-timeout=1000 tensorflow-cpu==$TF_VERSION
66

77
RUN apt-get update && apt-get install -y sudo rsync

tools/install_deps/tensorflow-cpu.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tensorflow-cpu~=2.10.0
1+
tensorflow-cpu~=2.11.0

tools/install_deps/tensorflow.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tensorflow~=2.10.0
1+
tensorflow~=2.11.0

tools/run_gpu_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export DOCKER_BUILDKIT=1
66
docker build \
77
-f tools/docker/build_wheel.Dockerfile \
88
--target tfa_gpu_tests \
9-
--build-arg TF_VERSION=2.10.0 \
9+
--build-arg TF_VERSION=2.11.0 \
1010
--build-arg PY_VERSION=3.7 \
1111
-t tfa_gpu_tests ./
1212
docker run --rm -t --gpus=all tfa_gpu_tests

0 commit comments

Comments
 (0)