Hi,
In nvidia-smi, it states that you have CUDA 10.2.
You might have some conflicts between your libraries.
You want to make sure that you have the cuda version that matches pytorch.
Also you can try to use cuda in pytorch by doing torch.rand(1).cuda() to see if the error message hints at what is not correct.