I've been trying to connect my GPU to tensorflow, but I've been running into this problem. Whenever I run print("gpus:", len(tf.config.list_physical_devices('GPU'))) in the command line (after setting appropriate path variables), I get the desired output.
However, when I run the same thing in pycharm, I get this error
Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found, and then it doesn't find my GPU.
How can I solve this? Also, is there any way to avoid resetting path variables every time I close the command line?