What spyder version are you using in combination with pytorch?
I’m having problems getting it all working together. Not sure whether pytorch or spyder is causing the problem.
Tried so far:
-python 2.7
-pytorch 0.12.1, 0.2.0, from source
-ipython 4.10, 5.6
-spyder 3.2.4