IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

tile_to_descriptor

def tile_to_descriptor[dtype: 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:

  • โ€‹dtype (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: `Layout - A transformed layout compatible with WGMMA descriptors.

Was this page helpful?