tilus.ir.layout.local¶
- tilus.ir.layout.local(*shape, ranks=None)[source]¶
Create a local layout.
A local layout is a layout that maps all dimensions to the local dimensions. The ranks of the dimensions are specified by the ranks parameter.
- Parameters:
shape (int) – The shape of the layout. Each entry in shape must be a positive constant integer.
ranks (Sequence[int], optional) – The ranks of the dimensions. The ranks must be unique and in the range [0, len(shape)). If not specified, the ranks will be set to the default values [0, 1, 2, …], indicating the row-major order of the dimensions.
- Returns:
ret – The local layout.
- Return type: