In my case, even after compiling from the source I still get this error:
Found GPU0 GeForce GT 650M which is of cuda capability 3.0.
PyTorch no longer supports this GPU because it is too old.
Any ideas?