Torch.cuda.is_available() is false for cuda 11.8

Thank you all for your kind time and consideration. Solved the issue by following the following steps:

  1. uninstalling cuda 11.8 and installing cuda 11.7
  2. copying all files of cudnn in lib, include and bin to respective folders in cuda
  3. removing the environment and recreating
  4. installing cuda version of pytorch