Hi,
All objects are passed by reference in python.
But doing a =  does not try to change a inplace. It only give the name “a” to the object returned by the right hand side.
You can change a inplace by doing explicit inplace change: a.copy_(torch.max(a, b)) for example.