Custom cpp pass by reference

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.

1 Like