I am a beginner in pytorch and deep learning. When I trying to run the program with pytorch, it shows
torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available
Then I added the test code
print(t.cuda.is_available())
and it returns False.
But it comes the most wired thing that when I typed line by line in the consel:
python
>>>import torch
>>> torch.version.cuda
'11.5'
>>> torch.cuda.is_available()
True
I am also sure that I have GPUs in the server, but why does the program cannot use the GPU?