tilus.ir.layout.spatial

Contents

tilus.ir.layout.spatial

tilus.ir.layout.spatial(*shape, ranks=None)[source]

Create a spatial layout.

A spatial layout is a layout that maps all dimensions to the spatial dimensions. The ranks of the dimensions are specified by the ranks parameter.

Parameters:
  • *shape – 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 spatial layout.

Return type:

RegisterLayout