What does continuous mean, isn't any array is continuous?

Tensors are saved in a whole block in MEMORY,
contiguous means adjacent elements are adjacent in memory. Some tenor operation may change the index of element, such as transpose, expand, at such situation, only the index of data is changed, the data in memory is not changed, thus
adjacent elements are not adjacent in memory.

1 Like