Skip to content

Commit c93195d

Browse files
dansuh17tensorflower-gardener
authored andcommitted
Bump up tensorflow version to 2.9.1 for continuous build tests.
Previous version 2.7.0 occasionally fails to build because of the version incompatibility between protobuf and tensorboard. The following is the build error message. ``` ERROR: tensorboard 2.9.1 has requirement protobuf<3.20,>=3.9.2, but you'll have protobuf 4.21.2 which is incompatible. ``` With tensorflow version >=2.7.3, the problem is fixed by the explicit protobuf version range specification: `protobuf<3.20,>=3.9.2`. However, the unit tests rely on a feature that was introduced in `tensorflow-compression>=2.9.0`, which transitively requires `tensorflow>=2.9.0`. Simply bumping up tensorflow's version to >=2.7.3 also causes install failures for `tensorflow-compression`. Therefore tensorflow's version is bumped up to `2.9.1` and the version for `tensorflow-compression` is explicitly required to be compatible with `2.9.1`. PiperOrigin-RevId: 462517238
1 parent 38ca8c9 commit c93195d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ci/kokoro/gcp_ubuntu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
FROM ubuntu:20.04
3030

3131
ARG BAZEL_VERSION=4.2.2
32-
ARG TENSORFLOW_VERSION=2.7.0
32+
ARG TENSORFLOW_VERSION=2.9.1
3333

3434

3535
RUN apt-get update -y

ci/kokoro/run_bazel_unittests.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ set -o pipefail # Treat the failure of a command in a pipeline as error.
3333
# set -x
3434

3535
pip install --requirement "requirements.txt"
36-
# Not in list of requirements, but needed for EPR test:
37-
# TODO(b/232345872).
38-
pip install tensorflow-compression
36+
# TODO(b/232345872): Not in list of requirements, but needed for EPR test.
37+
# The EPR test relies on a feature (PowerLawEntropyModel) introduced in 2.9.0.
38+
pip install tensorflow-compression~=2.9.1
3939

4040
# Run the tests.
41-
# Some tests requiring more RAM that the CI machine provides are disabled.
41+
# Some tests requiring more RAM than the CI machine provides are disabled.
4242
bazel test --test_size_filters="-enormous" \
4343
//tensorflow_model_optimization/python/core/...

0 commit comments

Comments
 (0)