Why is sourceTensor.clone() not a leaf variable?

To allow in-place operations for example.

This for instance. Instead of adding 0., one can use *.clone() as in here.

1 Like