Solved by goldsborough in post #2 
              
              
                Hi, 
It’s very hard for me to help you with this error without any context code at all  
What I believe might be the issue is that tensor  in your case is a Tensor, while other_tensor is a Variable. For example, this code will fail with precisely this message: 
auto x = at::ones(at::CPU(at::kFloat),…