Please refer to this Issue

  
      github.com/pytorch/pytorch
  
  
    



Issue: "RuntimeError: Expected tensor to have CUDA Backend, but got tensor with CUDA Backend" 8


	
	opened by nikitakit
	on 2018-05-25
	
	
	closed by zou3519
	on 2018-05-30
	


Issue description
The error message here should say "expected X, but got Y" instead of "expected X, but got X". Currently toString(t.type().backend())...


 	todo