from tensorflow.python.client import device_lib
device_lib.list_local_devices()
tf.config.list_physical_devices('GPU')
Running the code above is giving me this output :
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 932414320379148726]
[]
I am using RTX 3060 Ti along with CUDA 11.1 and cudnn 8+ on Python 3.8.5 I have tried tensorlfow-gpu (2.3, 2.4 and 2.5 dev) but none detecting GPU any solution???.
With tensorflow you should do :
Did you have the same error using pytorch ?