Build tensorflow/addons with custom cuda/cudnn version
There have four steps to “Build tensorflow/addons with custom cuda/cudnn version”.
your can use conda to duild.
1 2
conda create -n mk conda activate mk
Requirement
then use conda/pip to install some pkgs.
pip
six
numpy
wheel
setuptools
mock future>=0.17.1
keras_applications==1.0.6
keras_preprocessing==1.0.5
bazel=0.24.1
First
Pull the source code from the github.
1 2 3 4 5 6 7
git clone https://github.com/tensorflow/addons.git cd addons # we should checkout to Latest release version git checkout r0.6 # then clean bazel buffer bazel clean --expunge
Second
Then, in the addons folder,we need to change ‘configure.sh’ and ‘setup.py’.
configure.sh
1
vim configure.sh
we need to alter line 82 to 87 to match your cuda/cudnn version.