tilus.ir.layout.reshape¶
- tilus.ir.layout.reshape(layout, shape)[source]¶
Reshape the layout to the given shape.
- Parameters:
layout (RegisterLayout) – The layout to reshape.
shape (Sequence[int]) – The shape to reshape to. The shape must be compatible with the layout’s shape.
- Returns:
ret – The reshaped layout.
- Return type: