hi,
I was wondering how memory allocation is working in libtorch. I think with clone one is allocating new memory, but when one is doing say
torch::Tensor y=torch::randn({4,5});
torch::Tensor x=y;
Is this setting x to y’s address or making a copy? I guess I can try some code to check this, but I was wondering in general if there is any documentation of how libtorch manages memory.