Skip to main content
Log in

Mojo function

tile_to_descriptor

tile_to_descriptor[type: DType, layout: Layout, is_k_major: Bool = True]() -> Layout

Transforms a layout into a WGMMA descriptor-compatible layout.

Converts a standard layout into a form that can be used with WGMMA descriptors, handling both K-major and MN-major layouts differently.

Parameters:

  • type (DType): Element data type of the tensor.
  • layout (Layout): Input layout to transform.
  • is_k_major (Bool): Whether the layout is K-major (True) or MN-major (False).

Returns:

`Layout - A transformed layout compatible with WGMMA descriptors.