Hi, I signed up today to share a solution 
My setup is 2080Ti, CUDA 10.1, python 3.6, installation method is pip3.
I originally installed the latest stable version suggested by pytorch home page  https://download.pytorch.org/whl/cu100/torch-1.0.1.post2-cp36-cp36m-linux_x86_64.whl 34
, which produces that error message.
Then I tried the version 1.0.0 suggested by Yiru_Shen, which still produces that error message.
Finally I tried the nightly build, which does NOT produce any error message, luckily i don’t have to build from source