Solved by rasbt in post #3 
              
              
                Not sure if that’s related to Spyder, I had some of these when I was using Jupyter Notebook some time ago. It happened very rarely, and even resetting GPU memory didn’t help. What helped was simply quitting and restarting the Notebook. 

From GPU and CPU runs. I’m using pytorch-gpu version 0.1.12 in…