Solved by KFrank in post #2 
              
              
                Hi Johannes! 

I’m not sure specifically what you’re asking, but here are some 
comments: 
In loss.cpu().data, data is a deprecated property that was used 
to unwrap a Tensor from a Variable.  (I believe this was prior to 
pytorch version 0.4.0.) 
It’s just a coincidence that the character string “d…