I found out that calling torch.empty() does not allocate memory to fit future data. Is it an intended behavior? I believed that torch.empty() works like any other construction methods, but without filling in any values.
Docs 1 says:

Returns a tensor filled with uninitialized data.

Which is ambiguous to me.