Tensorflow not detect my rtx 4070

Hey,

I’m trying to get TensorFlow to work on my new GPU, so I downloaded and installed cuDNN 8.6.0, CUDA Toolkit 11.8 on my computer, and added the paths to the environment variable PATH. On Conda, I installed Python 3.10 with pip 20.3, along with cudatoolkit 11.2 and cudnn 8.1.0. I didn’t get any errors of any kind, but when I run print(tf.config.list_physical_devices(‘GPU’)), I get an empty list. What can I do?

PS : I have an windows 11 and a rtx 4070