IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/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. /max/get-started.md).

Mojo function

as_dynamic_row_major_1d

def as_dynamic_row_major_1d[dtype: DType](tensor: LayoutTensor[dtype, element_layout=tensor.element_layout, layout_int_type=tensor.layout_int_type, linear_idx_type=tensor.linear_idx_type, masked=tensor.masked, alignment=tensor.alignment]) -> LayoutTensor[dtype, Layout.row_major(-1), ImmutAnyOrigin]

Returns:

LayoutTensor[dtype, Layout.row_major(-1), ImmutAnyOrigin]