Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Upgrade Tensorflow version to 1.13.1 #2119

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions containers/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# We use different base images for GPU vs CPU Dockerfiles, so we expect
# that the appropriate image is pulled and tagged locally.
# CPU should use ubuntu:16.04
# and GPU uses nvidia/cuda:9.1-cudnn7-devel-ubuntu16.04
# and GPU uses nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04
FROM datalab-external-base-image
MAINTAINER Google Cloud DataLab

Expand Down Expand Up @@ -120,7 +120,7 @@ RUN echo "deb-src http://ftp.us.debian.org/debian testing main" >> /etc/apt/sour
google-cloud-monitoring==0.28.0 \
lime==0.1.1.23 \
protobuf==3.6.1 \
tensorflow==1.8.0 && \
tensorflow==1.13.1 && \
source deactivate && \
# Clean up before setting up the Python3 env.
conda clean -tipsy && \
Expand Down Expand Up @@ -232,7 +232,7 @@ RUN source activate $PYTHON_3_ENV && \
google-cloud-monitoring==0.28.0 \
lime==0.1.1.23 \
protobuf==3.6.1 \
tensorflow==1.8.0
tensorflow==1.13.1

ENV LANG en_US.UTF-8

Expand Down
4 changes: 2 additions & 2 deletions containers/base/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ SHELL ["/bin/bash", "-c"]

# Download and Install GPU specific packages
RUN source activate py2env && \
pip install -U --upgrade-strategy only-if-needed --no-cache-dir tensorflow-gpu==1.8.0 tflearn h5py && \
pip install -U --upgrade-strategy only-if-needed --no-cache-dir tensorflow-gpu==1.13.1 tflearn h5py && \
source deactivate && \
source activate py3env && \
pip install -U --upgrade-strategy only-if-needed --no-cache-dir tensorflow-gpu==1.8.0 tflearn h5py && \
pip install -U --upgrade-strategy only-if-needed --no-cache-dir tensorflow-gpu==1.13.1 tflearn h5py && \
source deactivate
6 changes: 3 additions & 3 deletions containers/base/build.gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ fi

trap 'rm -rf pydatalab' exit

docker pull nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
docker pull nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04
# Docker tag flags changed in an incompatible way between versions.
# The Datalab Jenkins build still uses the old one, so try it both ways.
if ! $(docker tag -f nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04 datalab-external-base-image 2> /dev/null); then
docker tag nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04 datalab-external-base-image
if ! $(docker tag -f nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04 datalab-external-base-image 2> /dev/null); then
docker tag nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04 datalab-external-base-image
fi
docker build ${DOCKER_BUILD_ARGS} -t datalab-core-gpu .
docker build ${DOCKER_BUILD_ARGS} -f Dockerfile.gpu -t datalab-base-gpu .
2 changes: 2 additions & 0 deletions containers/base/third_party_licenses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ tensorflow,https://raw.githubusercontent.com/tensorflow/tensorflow/master/LICENS
tensorboard,https://raw.githubusercontent.com/tensorflow/tensorboard/master/LICENSE,Apache 2.0
keras,https://raw.githubusercontent.com/keras-team/keras/master/LICENSE,MIT
Keras-Applications,https://raw.githubusercontent.com/keras-team/keras-applications/master/LICENSE,MIT
Keras-Preprocessing,https://raw.githubusercontent.com/keras-team/keras-preprocessing/master/LICENSE,MIT
jupyter-tensorboard,https://raw.githubusercontent.com/lspvic/jupyter_tensorboard/master/LICENSE,MIT
torch,https://raw.githubusercontent.com/pytorch/pytorch/master/LICENSE,BSD-3-clause
torchvision,https://raw.githubusercontent.com/pytorch/vision/master/LICENSE,BSD-3-clause
Expand Down Expand Up @@ -168,6 +169,7 @@ scipy,https://raw.githubusercontent.com/scipy/scipy/master/LICENSE.txt,BSD
tensorflow-tensorboard,https://raw.githubusercontent.com/tensorflow/tensorboard/master/LICENSE,Apache 2.0
tensorflow-data-validation,https://raw.githubusercontent.com/tensorflow/data-validation/master/LICENSE,Apache 2.0
tensorflow-metadata,https://raw.githubusercontent.com/tensorflow/metadata/master/LICENSE,Apache 2.0
tensorflow-estimator,https://raw.githubusercontent.com/tensorflow/estimator/master/LICENSE,Apache 2.0
defusedxml,https://raw.githubusercontent.com/tiran/defusedxml/master/LICENSE,PSF
conda,https://raw.githubusercontent.com/conda/conda/master/LICENSE.txt,3-Clause BSD
packaging,https://raw.githubusercontent.com/pypa/packaging/master/LICENSE,BSD or Apache 2.0
Expand Down
4 changes: 2 additions & 2 deletions tools/release/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ steps:

## Second, we build the GPU base image
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04']
args: ['pull', 'nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04']
id: 'pullNvidiaUbuntu'
- name: 'gcr.io/cloud-builders/docker'
args: ['tag', 'nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04', 'datalab-external-base-image']
args: ['tag', 'nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04', 'datalab-external-base-image']
id: 'tagNvidiaUbuntu'
waitFor: ['buildBase', 'pullNvidiaUbuntu']
- name: 'gcr.io/cloud-builders/docker'
Expand Down