I\'m using Ubuntu 16.04, Cuda 8.0 and cudann-v5.1. I uninstalled Tensorflow-CPU version and reinstalled tensorflow-GPU enabled. Followed the instructions given here: https:/
NOTE: TensorFlow requires MSVCP140.DLL, which may not be installed on your system. If, when you import tensorflow as tf, you see an error about No module named "_pywrap_tensorflow" and/or DLL load failed, check whether MSVCP140.DLL is in your %PATH% and, if not, you should install the [Visual C++ 2015 redistributable (x64 version).[1]: https://www.microsoft.com/en-us/download/details.aspx?id=53587
I recommend you look at the tensorflow's official documentation
I'm sorry I did not see you using Ubuntu I used the Windows10 is so sorry