@@ -14,13 +14,15 @@ if [[ $1 == --help || $1 == help ]]; then
1414 [ARGVARS...] get_deps.sh [cpu|gpu] [--help|help]
1515
1616 Argument variables:
17- VERBOSE=1 Print commands
18- FORCE=1 Download even if present
19- WITH_DLPACK=0 Skip dlpack
20- WITH_TF=0 Skip Tensorflow
21- WITH_TFLITE=0 Skip Tensorflow
22- WITH_PT=0 Skip PyTorch
23- WITH_ORT=0 Skip OnnxRuntime
17+ CPU=1 Get CPU dependencies
18+ GPU=1 Get GPU dependencies
19+ VERBOSE=1 Print commands
20+ FORCE=1 Download even if present
21+ WITH_DLPACK=0 Skip dlpack
22+ WITH_TF=0|S3 Skip Tensorflow or download from S3 repo
23+ WITH_TFLITE=0|S3 Skip TensorflowLite or download from S3 repo
24+ WITH_PT=0|S3 Skip PyTorch or download from S3 repo
25+ WITH_ORT=0|S3 Skip OnnxRuntime or download from S3 repo
2426
2527 END
2628 exit 0
2931set -e
3032[[ $VERBOSE == 1 ]] && set -x
3133
32- if [[ " $1 " == " cpu" ]]; then
34+ if [[ " $1 " == " cpu" || $CPU == 1 ]]; then
3335 GPU=0
3436 DEVICE=cpu
35- elif [[ " $1 " == " gpu" ]]; then
37+ elif [[ " $1 " == " gpu" || $GPU == 1 ]]; then
3638 GPU=1
3739 DEVICE=gpu
3840else
@@ -100,7 +102,13 @@ if [[ $WITH_TF != 0 ]]; then
100102 if [[ $ARCH == x64 ]]; then
101103 TF_VERSION=1.15.0
102104 TF_ARCH=x86_64
103- LIBTF_URL_BASE=https://storage.googleapis.com/tensorflow/libtensorflow
105+
106+ # special case for 1.15.0 as official version does not suport CUDA 10.1
107+ if [[ $WITH_TF == S3 || $GPU == 1 ]]; then
108+ LIBTF_URL_BASE=https://s3.amazonaws.com/redismodules/tensorflow
109+ else
110+ LIBTF_URL_BASE=https://storage.googleapis.com/tensorflow/libtensorflow
111+ fi
104112 elif [[ $ARCH == arm64v8 ]]; then
105113 TF_VERSION=1.15.0
106114 TF_ARCH=arm64
@@ -115,7 +123,11 @@ if [[ $WITH_TF != 0 ]]; then
115123 TF_OS=darwin
116124 TF_BUILD=cpu
117125 TF_ARCH=x86_64
118- LIBTF_URL_BASE=https://storage.googleapis.com/tensorflow/libtensorflow
126+ if [[ $WITH_TF == S3 ]]; then
127+ LIBTF_URL_BASE=https://s3.amazonaws.com/redismodules/tensorflow
128+ else
129+ LIBTF_URL_BASE=https://storage.googleapis.com/tensorflow/libtensorflow
130+ fi
119131 fi
120132
121133 LIBTF_ARCHIVE=libtensorflow-${TF_BUILD} -${TF_OS} -${TF_ARCH} -${TF_VERSION} .tar.gz
@@ -186,7 +198,7 @@ fi # WITH_TFLITE
186198
187199# ##################################################################################### LIBTORCH
188200
189- PT_VERSION=" 1.4 .0"
201+ PT_VERSION=" 1.5 .0"
190202
191203if [[ $WITH_PT != 0 ]]; then
192204 [[ $FORCE == 1 ]] && rm -rf $LIBTORCH
270282
271283# ################################################################################## ONNXRUNTIME
272284
273- ORT_VERSION=" 1.0 .0"
285+ ORT_VERSION=" 1.2 .0"
274286
275287if [[ $WITH_ORT != 0 ]]; then
276288 [[ $FORCE == 1 ]] && rm -rf $ONNXRUNTIME
0 commit comments