albanD:

When I say that a Tensor is a view of another, I mean that they different instances of the Tensor class but they point to the same memory containing the data.


I see. So basically it seems that “view” means they are different tensor objects this with different meta-data (main example is different “shape”, in fact I always thought shape and view were the same) pointing to the same memory.

useful link: https://pytorch.org/docs/stable/tensor_view.html 11

TENSOR VIEWS


PyTorch allows a tensor to be a  View  of an existing tensor. View tensor shares the same underlying data with its base tensor. Supporting  View  avoids explicit data copy, thus allows us to do fast and memory efficient reshaping, slicing and element-wise operations.