Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit ee2766d

Browse files
committed
add tensor flow url for ubuntu 17.04
1 parent 7d3f5bb commit ee2766d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

script/installation/packages.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function install_tf() {
8888
## ------------------------------------------------
8989
if [ "$DISTRO" = "UBUNTU" ]; then
9090
MAJOR_VER=$(echo "$DISTRO_VER" | cut -d '.' -f 1)
91-
91+
MINOR_VER=$(echo "$DISTRO_VER" | cut -d '.' -f 2)
9292
# Fix for LLVM-3.7 on Ubuntu 14 + 17
9393
if [ "$MAJOR_VER" == "14" -o "$MAJOR_VER" == "17" ]; then
9494
if [ "$MAJOR_VER" == "14" ]; then
@@ -132,7 +132,11 @@ if [ "$DISTRO" = "UBUNTU" ]; then
132132
PKG_LLVM="llvm-3.9"
133133
PKG_CLANG="clang-3.8"
134134
TF_VERSION="1.5.0"
135-
TFBinaryURL="https://storage.googleapis.com/tensorflow/linux/${TF_TYPE}/tensorflow-${TF_VERSION}-cp36-cp36m-linux_x86_64.whl"
135+
if [ "$MINOR_VER" == "10"]; then
136+
TFBinaryURL="https://storage.googleapis.com/tensorflow/linux/${TF_TYPE}/tensorflow-${TF_VERSION}-cp36-cp36m-linux_x86_64.whl"
137+
elif [ "$MINOR_VER" == "04"]; then
138+
TFBinaryURL="https://storage.googleapis.com/tensorflow/linux/${TF_TYPE}/tensorflow-${TF_VERSION}-cp35-cp35m-linux_x86_64.whl"
139+
fi
136140
fi
137141
TFCApiFile="libtensorflow-${TF_TYPE}-linux-x86_64-${TF_VERSION}.tar.gz"
138142
LinkerConfigCmd="sudo ldconfig"

0 commit comments

Comments
 (0)