Skip to content

Commit f2ed042

Browse files
rstzcopybara-github
authored andcommitted
1.9.0rc0 fixes
PiperOrigin-RevId: 612435124
1 parent 43334d8 commit f2ed042

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

configure/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"absl_py",
3535
"wheel",
3636
"wurlitzer",
37-
"tf_keras",
37+
"tf_keras~=2.16.0rc2",
3838
]
3939

4040

tensorflow_decision_forests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
__version__ = "1.9.0rc0"
5555
__author__ = "Mathieu Guillame-Bert"
5656

57-
compatible_tf_versions = ["2.16.0rc0"]
57+
compatible_tf_versions = ["2.16.0-rc0"]
5858
__git_version__ = "HEAD" # Modify for release build.
5959

6060
from tensorflow_decision_forests.tensorflow import check_version

tools/test_bazel.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ if [ ${TF_VERSION} == "nightly" ]; then
5959
TF_MINOR="nightly"
6060
else
6161
${PYTHON} -m pip install tensorflow==${TF_VERSION} --force-reinstall
62-
TF_MINOR=$(echo $TF_VERSION | grep -oP '[0-9]+\.[0-9]+')
63-
${PYTHON} -m pip install tf-keras==${TF_MINOR} --force-reinstall
62+
if [[ $TF_VERSION == *"rc"* ]]; then
63+
${PYTHON} -m pip install tf-keras --pre --upgrade
64+
else
65+
TF_MINOR=$(echo $TF_VERSION | grep -oP '[0-9]+\.[0-9]+')
66+
${PYTHON} -m pip install tf-keras==${TF_MINOR}
67+
fi
6468
fi
6569
ext=""
6670

0 commit comments

Comments
 (0)