Are torch.stack and cat inplace operations?

Hi,

They are not inplace as we do not support a Tensor backed by multiple small memory storage.

When you do some_name = in python. It just assigns the returned object to that name.

1 Like