script="""#!/bin/bash set -e /databricks/python/bin/python -V . /databricks/conda/etc/profile.d/conda.sh conda activate /databricks/python conda uninstall -y cudnn conda install -y -c anaconda cudatoolkit=10.0 DEBIAN_FRONTEND=noninteractive sudo apt-get install -yq --no-install-recommends \ libcudnn7=7.5.0.56-1+cuda10.0 \ libcudnn7-dev=7.5.0.56-1+cuda10.0 /databricks/python/bin/pip install {tfversion} """.format(tfversion=TENSORFLOW_VERSION)
Init script to install TensorFlow 1.13.1 or 2.0-alpha
This notebook creates an init script that installs TensorFlow.
script_path
variable where you want to save the script.TENSORFLOW_VERSION
variable to the TensorFlow version you want to install:'tensorflow-gpu==1.13.1'
'tensorflow-gpu==2.0.0-alpha0'
tensorflow-gpu-init.sh
inscript_path
.Last refresh: Never