Can not Detect GPU from Jupyter

I have Dell alienware x17 with RTX 3080 Ti 16B. I want to use pretrained model for deep learning in python. Hoever I am unable to use GPU in Python. Installed CUDA and CuDNN and tested for GPU but it doesnt detect. see below.
import tensorflow as tf
print(“TensorFlow version:”, tf.version)
print("Num GPUs Available: ", len(tf.config.list_physical_devices(‘GPU’)))
output is below.
TensorFlow version: 2.11.0
Num GPUs Available: 0

However on command prompt I can see it detects using nvcc -version and nvidia-smi. see below.

Please help. I am trying to use pretrained model. for that i need to access GPU from my python code. I tried few youtube videos and set the environment variable but didnt work.

I’ve moved this topic to Python Help. The Core Development category is for developing Python itself, not for questions on using Python or Python packages.

@mrrmaurya

  • Windows Native - Windows 7 or higher (64-bit) (no GPU support after TF 2.10)

See: www.tensorflow.org/install/pip

1 Like