I\'ve tried tensorflow on both cuda 7.5 and 8.0, w/o cudnn (my GPU is old, cudnn doesn\'t support it).
When I execute device_lib.list_local_devices(),
I came across this same issue in jupyter notebooks. This could be an easy fix.
$ pip uninstall tensorflow
$ pip install tensorflow-gpu
You can check if it worked with:
tf.test.gpu_device_name()
It seems like tensorflow 2.0+ comes with gpu capabilities therefore
pip install tensorflow should be enough