Both return the same value, but the difference is that the second form would modify the input in-place and return the same input tensor object. The first form returns a new tensor, which is what we want.