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

runtime_layout

Provides the RuntimeLayout type and functions for working with it. You can use RuntimeLayout to define a layout where the dimensions are not known at compile time.

You can import these APIs from layout.runtime_layout.

from layout.runtime_layout import RuntimeLayout, make_layout

Structs

  • RuntimeLayout: A runtime-configurable layout that uses RuntimeTuple for storage.

Functions

  • coalesce: Coalesce adjacent dimensions in a runtime layout when possible.
  • make_layout: Combine two runtime layouts into a single composite layout.