My GPU has CUDA compute capabilities of 5, and I wasn’t able to get it to work correctly with the Pytorch 0.4.x binaries on Anaconda, but I did manage to compile it in Windows.  Here’s the raw footage of how I did it:
How to Compile the Latest Pytorch from Source in Windows with CUDA Support
I used CUDA 9.0, MSVC 2017 14.11 (very important), and the scripts that peterjc123 created 44.
Note that in the video, I had to restart several times due to errors and I purposely left them in there in case you’ve also encountered them.  There are no guarantees that these are the only errors you’ll encounter.