You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

install-requirements-for-rtd.sh 696 B

4 years ago
12345678910111213141516171819202122232425262728
  1. # This script is for installing horovod on readthedocs only!
  2. set -e
  3. pwd
  4. SCRIPT_DIR=$(cd $(dirname $0) && pwd)
  5. [ ! -z "$1" ] && export PATH=$1:$PATH
  6. LOCATION=/home/docs
  7. URL=https://github.com/lgarithm/openmpi-release/raw/master/releases/openmpi-bin-3.1.0-rtd.tar.bz2
  8. mkdir -p ${LOCATION}
  9. chmod a+rx ${LOCATION}
  10. cd ${LOCATION}
  11. curl -vLOJ ${URL}
  12. tar -xf *.tar.bz2
  13. pip install tensorflow==1.5.0 # must install tensorflow before horovod
  14. PATH=${LOCATION}/openmpi/bin:$PATH pip install horovod
  15. # install all requirements except tensorflow
  16. for req in $(find $SCRIPT_DIR/../requirements -type f); do
  17. if [ ! $(grep tensorflow $req) ]; then
  18. pip install -r $req
  19. fi
  20. done
  21. echo "done $0"

TensorLayer3.0 是一款兼容多种深度学习框架为计算后端的深度学习库。计划兼容TensorFlow, Pytorch, MindSpore, Paddle.