4 ms·
sudo pip install tensorflow works fine as of the recent v1.0, and works out of the box for CPU training. The annoying thing for GPU training is handling the cu
by minimaxir 10y ago
sudo pip install tensorflow works fine as of the recent v1.0, and works out of the box for CPU training.
The annoying thing for GPU training is handling the cudNN dependency, which Google's guides are annoyingly lacking.
- jacquesm 10y ago> The annoying thing for GPU training is handling the cudNN dependency, which Google's guides are annoyingly lacking. I've found a nice workaround for that one that does not require registration with nvidia so you can automate it: ML_REPO_PKG=nvidia-machine-learning-repo-ubuntu1404_4.0-2_amd64.deb wget http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1404/x86_64/${ML_REPO_PKG} -O /tmp/${ML_REPO_PKG} sudo dpkg -i /tmp/${ML_REPO_PKG} rm -f /tmp/${ML_REPO_PKG} CUDA_REPO_PKG=cuda-repo-ubuntu1404_7.5-18_amd64.deb wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/${CUDA_REPO_PKG} -O /tmp/${CUDA_REPO_PKG} sudo dpkg -i /tmp/${CUDA_REPO_PKG} rm -f /tmp/${CUDA_REPO_PKG} apt-get update apt-get install libcudnn5-dev apt-get install libcudnn5
- rspeer 10y agoI'm assuming from the filename that that only works if you're on Ubuntu 14.04, right?
- jacquesm 10y agoErm, yes, sorry! I should have noted that, but presumably there are other files for other platforms? (these were the ones that worked for me). 16.04 is there as well: http://developer.download.nvidia.com/compute/machine-learning/repos/ http://developer.download.nvidia.com/compute/machine-learnin...
- jorgemf 10y agoIt is not Google's fault. You need to agree the terms and conditions of Nvidia in order to download cuDNN. So you have to do it manually.