Skip to content

Commit

Permalink
Merge pull request #145 from didi/zh794390558-patch-1
Browse files Browse the repository at this point in the history
Update install-delta.sh
  • Loading branch information
applenob authored Oct 23, 2019
2 parents 15045e7 + 84bf4ae commit 1872e50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/install/install-delta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ else
fi

if [ $2 == 'gpu' ];then
TF='tensorflow-gpu=${TF_VER}'
TF="tensorflow-gpu=${TF_VER}"
elif [ $2 == 'cpu' ];then
TF='tensorflow={TF_VER}'
TF="tensorflow=${TF_VER}"
else
echo ${USAGE}
exit 1
Expand All @@ -45,9 +45,9 @@ CONDA_ENV=delta-py${PY_VER}-tf${TF_VER}
if conda search ${TF} | grep "No match"; then
echo "Conda: do not have ${TF} for current platform."
if [ $2 == 'gpu' ];then
TF='tensorflow-gpu=${TF_VER}'
TF="tensorflow-gpu=${TF_VER}"
else
TF='tensorflow=${TF_VER}'
TF="tensorflow=${TF_VER}"
fi
echo "Conda: install ${TF} instead."
CONDA_ENV=delta-py${PY_VER}-tf${TF_VER}
Expand Down

0 comments on commit 1872e50

Please sign in to comment.