When i reshape a tensor (if the rank is changed), i get the following error.
x = ...  # Tensor of shape (100, 20)
x.view(-1)   # expect a tensor of shape (2000)

RuntimeError: input is not contiguous

What does ‘contiguous’ mean and why does this error occur?