It definitely is a PyTorch error.
I was installing PyTorch 0.3.0.post4 for Python 2.7 with Cuda 8 from it’s public .whl file and that version gave me an error. Link: http://download.pytorch.org/whl/cu80/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl
So I decided to downgrade to an earlier version: 0.2.0.post3 for same python and Cuda distributions.
Link: http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
And this time it worked successfully, so I´d guess is an error on the latest public release.
I was able to run my DQL algorithm successfully:

  
      
      GitHub
  
  
    

diegoalejogm/deep-q-learning 2

deep-q-learning - Implementation of Deep Q Learning algorithm in the Atari environments, as publicized by Google Deepmind in their famous research paper.