I am working on deep learning codes, particularly on convolutional neural networks with tensorflow.keras, but i notice SPYDER IDE (5.1.5 installed under ANACONDA) prefers use CPU instead GPU, i ran the same script under Jupyter Notebook and under this IDE (installed under Anaconda too) the code uses the GPU, but with Spyder Not. I suspect there is a issue with the Spyder kernel but i had not found a solution for this strange issue, please your support in order to solve this problem.
SPYDER 5.1.5
PYTHON 3.9
TENSORFLOW 2.7
CUDATOOLKIT 11.3
CUDNN 8.2
CUPY-CUDA113
JUPYTER 6.4.6
WINDOWS 11