GPU is not found when using Tensorflow on a HP laptop

The CUDA version is 12.2.0.
cudnn version is
Tensorflow version is 2.15
I have tried various methods but still cannot get TensorFlow to detect the GPU,so I hope to get help from everyone

Do you have Tensorflow GPU version in your laptop?
Check whether the Tensorflow installed in your laptop supports GPU.
I use jupyter notebook in my laptop and there is no problem for me connecting to it.
Check if environmental variables are correctly set. If you are not sure you can add them explicitly in your code using python.