Cuda not Avaliable

username: Merugu03
cooked: <p>I installed Cuda toolkit and cudnn but still, it’s showing Cuda not available.<br>
import torch<br>
import numpy as np</p>
<h1>check if CUDA is available</h1>
<p>train_on_gpu = torch.cuda.is_available()</p>
<p>if not train_on_gpu:<br>
print(‘CUDA is not available.  Training on CPU …’)<br>
else:<br>
print(‘CUDA is available!  Training on GPU …’)</p>
<p>CUDA is not available.  Training on CPU …</p>
<p>Please. I need a solution.</p>

username: peterjc123
cooked: <p>What is the result of <code>python -m torch.utils.collect_env</code>?</p>

username: Merugu03
cooked: <p>PyTorch version: 1.4.0<br>
Is debug build: No<br>
CUDA used to build PyTorch: Could not collect</p>
<p>OS: Microsoft Windows 10 Home Single Language<br>
GCC version: Could not collect<br>
CMake version: Could not collect</p>
<p>Python version: 3.7<br>
Is CUDA available: No<br>
CUDA runtime version: 10.2.89<br>
GPU models and configuration: Could not collect<br>
Nvidia driver version: Could not collect<br>
cuDNN version: Could not collect</p>
<p>Versions of relevant libraries:<br>
[pip] numpy==1.18.1<br>
[pip] numpydoc==0.9.2<br>
[pip] torch==1.4.0<br>
[pip] torchvision==0.5.0<br>
[conda] blas                      1.0                         mkl<br>
[conda] cpuonly                   1.0                           0    pytorch<br>
[conda] mkl                       2020.0                      166<br>
[conda] mkl-service               2.3.0            py37hb782905_0<br>
[conda] mkl_fft                   1.0.15           py37h14836fe_0<br>
[conda] mkl_random                1.1.0            py37h675688f_0<br>
[conda] pytorch                   1.4.0               py3.7_cpu_0  [cpuonly]  pytorch<br>
[conda] torchvision               0.5.0                  py37_cpu  [cpuonly]  pytorch</p>

username: peterjc123
cooked: <p>Have you installed the driver of your GPU? I didn’t see which version is installed in the log.</p>

username: Merugu03
cooked: <p>Gpu driver version 10.2</p>

username: Merugu03
cooked: <p>Fri Mar 20 12:55:56 2020<br>
±----------------------------------------------------------------------------+<br>
| NVIDIA-SMI 441.45       Driver Version: 441.45       CUDA Version: 10.2     |<br>
|-------------------------------±---------------------±---------------------+<br>
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |<br>
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |<br>
|===============================+======================+======================|<br>
|   0  GeForce GTX 1650   WDDM  | 00000000:01:00.0 Off |                  N/A |<br>
| N/A   37C    P8     5W /  N/A |    134MiB /  4096MiB |      0%      Default |<br>
±------------------------------±---------------------±---------------------+</p>
<p>±----------------------------------------------------------------------------+<br>
| Processes:                                                       GPU Memory |<br>
|  GPU       PID   Type   Process name                             Usage      |<br>
|=============================================================================|<br>
|  No running processes found                                                 |<br>
±----------------------------------------------------------------------------+</p>

username: peterjc123
cooked: <p>I just saw that you are using a cpuonly version of PyTorch. Please remove the cpuonly package and reinstall the cuda version of PyTorch according to the steps on <a href="https://pytorch.org" rel="nofollow noopener">https://pytorch.org</a>.</p>