How to tile a tensor?

It may be worth mentioning that .view doesn’t change or copy the underlying data in any way, it just changes the strides of the view mechanism.

Hence, calling .view is an extremely fast operation.

1 Like