New viewed tensor could have a different size compared to origin tensor?

Hi,

What is x is that example?

Anyway view is like reshape in numpy (with additional considerations I am not familiar with) but if you call:

x.view(shape)

then their should be as many elements in x as in a tensor with size()==shape. (to go from a 3D tensor of size C,H,W to a 2D tensor of size()==shape then shape[0] x shape[1] == CHW)