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

is_bit_linear

def is_bit_linear[L: TensorLayout]() -> Bool

Returns whether a static layout is linear over F2.

It is when every mode's extent is a power of two, every stride is zero or a power of two, and no two coordinate bits reach the same offset bit, so adding offsets never carries.

Parameters:

Returns:

Bool: True when placement[L]() describes L exactly.

Was this page helpful?