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.