Skip to content

Commit 476debc

Browse files
rstzcopybara-github
authored andcommitted
[TF-DF] Install tf_keras_nightly when using tf_nightly
PiperOrigin-RevId: 608302614
1 parent a62fb80 commit 476debc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/test_bazel.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,16 @@ function is_macos() {
5151
# Install Pip dependencies
5252
${PYTHON} -m ensurepip --upgrade || true
5353
${PYTHON} -m pip install pip setuptools --upgrade
54-
${PYTHON} -m pip install numpy pandas scikit-learn tf_keras
54+
${PYTHON} -m pip install numpy pandas scikit-learn
5555

5656
# Install Tensorflow at the chosen version.
5757
if [ ${TF_VERSION} == "nightly" ]; then
58-
${PYTHON} -m pip install tf-nightly --force-reinstall
58+
${PYTHON} -m pip install tf-nightly tf-keras-nightly --force-reinstall
5959
TF_MINOR="nightly"
6060
else
6161
${PYTHON} -m pip install tensorflow==${TF_VERSION} --force-reinstall
6262
TF_MINOR=$(echo $TF_VERSION | grep -oP '[0-9]+\.[0-9]+')
63+
${PYTHON} -m pip install tf-keras==${TF_MINOR} --force-reinstall
6364
fi
6465
ext=""
6566

0 commit comments

Comments
 (0)