Solved by ptrblck in post #2 
              
              
                As far as I know, at::Tensors are always passed by reference. 
If you would like to get a copy, you can call clone() inside your method.