You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO(b/318672158): Upgrade to Keras 3 once compatible with other TF libries.
215
-
# See blockers here: https://b.corp.google.com/issues/319722433#comment8
216
-
RUN pip install keras keras-cv keras-nlp && \
215
+
# b/318672158 Use simply tensorflow_decision_forests on next release, expected with tf 2.16
216
+
RUN pip install tensorflow_decision_forests --no-deps && \
217
+
/tmp/clean-layer.sh
218
+
219
+
RUN sed -i "/import tensorflow_decision_forests as tfdf/a import tf_keras" /opt/conda/lib/python3.10/site-packages/tensorflow_decision_forests/__init__.py && \
220
+
sed -i -e "/import tensorflow as tf/a import tf_keras" \
221
+
-e "/from yggdrasil_decision_forests.utils.distribute.implementations.grpc/a from tensorflow_decision_forests.keras import keras_internal" \
# Remove "--no-deps" flag and "namex" package once Keras 3.* is included in our base image.
259
+
# We ignore dependencies since tf2.15 and Keras 3.* should work despite pip saying it won't.
260
+
# Currently, keras tries to install a nightly version of tf 2.16: https://github.com/keras-team/keras/blob/fe2f54aa5bc42fb23a96449cf90434ab9bb6a2cd/requirements.txt#L2
261
+
RUN pip install --no-deps "keras>3" keras-cv keras-nlp namex && \
0 commit comments