Solved by Xiaoyu_Song in post #2 
              
              
                I used conda and tried to install the updated version: 
conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch

The problem solved.