Solved by richard in post #5 
              
              
                Thank you! 
This doesn’t crash for me on the master branch. What version of PyTorch are you using? If you’re using something less than or equal to 0.2, you should upgrade to 0.3 and see if the problem goes away.