Skip to content

R0.17 #2775

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

Closed
wants to merge 5 commits into from
Closed

R0.17 #2775

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
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,24 @@ jobs:
# https://github.com/bazelbuild/bazel/issues/14232#issuecomment-1011247429
os: ['macos-10.15', 'windows-2019', 'ubuntu-18.04']
py-version: ['3.7', '3.8', '3.9', '3.10']
tf-version: ['2.7.2', '2.8.1', '2.9.0']
tf-version: ['2.7.3', '2.8.2', '2.9.1']
cpu: ['x86']
exclude:
- py-version: '3.10'
tf-version: '2.7.2'
tf-version: '2.7.3'
include:
- os: 'macos-11'
cpu: 'arm64'
tf-version: '2.9.0'
tf-version: '2.9.1'
py-version: '3.8'
- os: 'macos-11'
cpu: 'arm64'
tf-version: '2.9.0'
tf-version: '2.9.1'
py-version: '3.9'
- os: 'macos-11'
cpu: 'arm64'
tf-version: '2.9.1'
py-version: '3.10'
fail-fast: false
steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -97,17 +101,21 @@ jobs:
matrix:
os: ['macOS', 'Windows', 'Linux']
py-version: ['3.7', '3.8', '3.9', '3.10']
tf-version: ['2.9.0']
tf-version: ['2.9.1']
cpu: ['x86']
include:
- os: 'macOS'
cpu: 'arm64'
tf-version: '2.9.0'
tf-version: '2.9.1'
py-version: '3.8'
- os: 'macOS'
cpu: 'arm64'
tf-version: '2.9.0'
tf-version: '2.9.1'
py-version: '3.9'
- os: 'macOS'
cpu: 'arm64'
tf-version: '2.9.1'
py-version: '3.10'
fail-fast: false
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release'
steps:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Just run from the root:

```bash
pip install tensorflow==2.8
# you can use "pip install tensorflow-cpu==2.9.0" too if you're not testing on gpu.
# you can use "pip install tensorflow-cpu==2.9.1" too if you're not testing on gpu.
pip install -e ./
```

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ what it was tested against.
| TensorFlow Addons | TensorFlow | Python |
|:----------------------- |:---|:---------- |
| tfa-nightly | 2.7, 2.8, 2.9 | 3.7, 3.8, 3.9, 3.10 |
| tensorflow-addons-0.17.0 | 2.7, 2.8, 2.9 |3.7, 3.8, 3.9, 3.10 |
| tensorflow-addons-0.16.1 | 2.6, 2.7, 2.8 |3.7, 3.8, 3.9, 3.10 |
| tensorflow-addons-0.15.0 | 2.5, 2.6, 2.7 |3.7, 3.8, 3.9 |
| tensorflow-addons-0.14.0 | 2.4, 2.5, 2.6 |3.6, 3.7, 3.8, 3.9 |
Expand Down Expand Up @@ -112,6 +113,7 @@ is compiled differently. A typical example of this would be `conda`-installed Te
| TensorFlow Addons | TensorFlow | Compiler | cuDNN | CUDA |
|:----------------------- |:---- |:---------|:---------|:---------|
| tfa-nightly | 2.9 | GCC 7.3.1 | 8.1 | 11.2 |
| tensorflow-addons-0.17.0 | 2.9 | GCC 7.3.1 | 8.1 | 11.2 |
| tensorflow-addons-0.16.1 | 2.8 | GCC 7.3.1 | 8.1 | 11.2 |
| tensorflow-addons-0.15.0 | 2.7 | GCC 7.3.1 | 8.1 | 11.2 |
| tensorflow-addons-0.14.0 | 2.6 | GCC 7.3.1 | 8.1 | 11.2 |
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_addons/image/color_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def equalize(
with tf.name_scope(name or "equalize"):
image_dims = tf.rank(image)
image = to_4D_image(image)
fn = partial(_equalize_image)
image = tf.map_fn(lambda x: fn(x, bins), image)
fn = partial(_equalize_image, bins=bins)
image = tf.map_fn(fn, image)
return from_4D_image(image, image_dims)


Expand Down
4 changes: 2 additions & 2 deletions tensorflow_addons/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
# We follow Semantic Versioning (https://semver.org/)
_MAJOR_VERSION = "0"
_MINOR_VERSION = "17"
_PATCH_VERSION = "0"
_PATCH_VERSION = "1"

# When building releases, we can update this value on the release branch to
# reflect the current release candidate ('rc0', 'rc1') or, finally, the official
# stable release (indicated by `_VERSION_SUFFIX = ''`). Outside the context of a
# release branch, the current version is by default assumed to be a
# 'development' version, labeled 'dev'.
_VERSION_SUFFIX = "dev"
_VERSION_SUFFIX = ""

# Example, '0.1.0-dev'
__version__ = ".".join([_MAJOR_VERSION, _MINOR_VERSION, _PATCH_VERSION])
Expand Down
2 changes: 1 addition & 1 deletion tools/build_dev_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x -e

docker build \
-f tools/docker/dev_container.Dockerfile \
--build-arg TF_VERSION=2.9.0 \
--build-arg TF_VERSION=2.9.1 \
--build-arg TF_PACKAGE=tensorflow \
--build-arg PY_VERSION=$PY_VERSION \
--no-cache \
Expand Down
2 changes: 1 addition & 1 deletion tools/docker/build_wheel.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#syntax=docker/dockerfile:1.1.5-experimental
ARG PY_VERSION
FROM tensorflow/build:latest-python$PY_VERSION as base_install
FROM tensorflow/build:2.9-python$PY_VERSION as base_install

ENV TF_NEED_CUDA="1"
ARG PY_VERSION
Expand Down
2 changes: 1 addition & 1 deletion tools/docker/cpu_tests.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#syntax=docker/dockerfile:1.1.5-experimental
FROM python:3.7 as build_wheel

ARG TF_VERSION=2.9.0
ARG TF_VERSION=2.9.1
RUN pip install --default-timeout=1000 tensorflow-cpu==$TF_VERSION

RUN apt-get update && apt-get install -y sudo rsync
Expand Down
2 changes: 1 addition & 1 deletion tools/install_deps/tensorflow-cpu.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensorflow-cpu~=2.9.0
tensorflow-cpu~=2.9.1
2 changes: 1 addition & 1 deletion tools/install_deps/tensorflow.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tensorflow~=2.9.0
tensorflow~=2.9.1
2 changes: 1 addition & 1 deletion tools/run_gpu_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export DOCKER_BUILDKIT=1
docker build \
-f tools/docker/build_wheel.Dockerfile \
--target tfa_gpu_tests \
--build-arg TF_VERSION=2.9.0 \
--build-arg TF_VERSION=2.9.1 \
--build-arg PY_VERSION=3.7 \
-t tfa_gpu_tests ./
docker run --rm -t --gpus=all tfa_gpu_tests