I have been struggling with this problem for the last two days yet not resolved.
My torch.cuda.is_available() is always False despite whatever I try. But there is no problem with Tensorflow for the GPU.
My Details:
Cuda Version: 11.8
Cudnn: available for cuda 11.x
python version: 3.10.4
Visual Studio: 2022
OS: Windows 10
Installation Method Used For Pytorch:
Used as mentioned in Pytorch: https://pytorch.org/
It’s good to hear you’ve solved the issue.
As can be seen in your screenshots and as @eqy mentioned, you’ve installed the CPU-only PyTorch binary so step 4 was needed.