Solved by Nikronic in post #2 
              
              
                Yes, exactly. When you transfer your model to GPU, your model output will be on GPU so you have to convert one to another type. 
So you can send your tensor to GPU by .to(device) method.