Skip to content

Commit 0638abf

Browse files
authored
Remove multi-backend Keras. (#1045)
From the keras repo: https://github.com/keras-team/keras/tree/2.4.0 > Multi-backend Keras has been discontinued. At this time, we recommend that Keras users who use multi-backend Keras with the TensorFlow backend switch to tf.keras in TensorFlow 2.0. http://b/184083722
1 parent 6cd8466 commit 0638abf

File tree

2 files changed

+1
-88
lines changed

2 files changed

+1
-88
lines changed

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ RUN apt-get install -y libfreetype6-dev && \
7373
# Pinned to match GPU version. Update version together.
7474
pip install lightgbm==3.2.1 && \
7575
pip install pydot && \
76-
pip install keras && \
7776
pip install keras-tuner && \
7877
pip install flake8 && \
7978
# Pinned because it breaks theano test with the latest version (b/178107003).
@@ -248,10 +247,6 @@ RUN pip install tensorpack && \
248247
RUN pip install --upgrade cython && \
249248
pip install --upgrade cysignals && \
250249
pip install pyfasttext && \
251-
# ktext has an explicit dependency on Keras 2.2.4 which is not
252-
# compatible with TensorFlow 2.0 (support was added in Keras 2.3.0).
253-
# Add the package back once it is fixed upstream.
254-
# pip install ktext && \
255250
pip install fasttext && \
256251
apt-get install -y libhunspell-dev && pip install hunspell && \
257252
pip install annoy && \
@@ -450,7 +445,7 @@ ENV PYTHONPATH=$PYTHONPATH:/opt/facets/facets_overview/python/
450445
ENV MKL_THREADING_LAYER=GNU
451446

452447
# Temporary fixes and patches
453-
# Temporary patch for Dask getting downgraded, which breaks Keras
448+
# Temporary patch for Dask getting downgraded, which breaks Keras
454449
RUN pip install --upgrade dask && \
455450
# Stop jupyter nbconvert trying to rewrite its folder hierarchy
456451
mkdir -p /root/.jupyter && touch /root/.jupyter/jupyter_nbconvert_config.py && touch /root/.jupyter/migrated && \

tests/test_keras.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)