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 module
tile_tensor
TileTensor type for structured memory access with compile-time layout information.
comptime valuesβ
LTToTTLayoutβ
comptime LTToTTLayout[lt_layout: Layout] = Layout[*?, *?]
Derive a TileTensor Layout from a legacy Layout.
Known dimensions become ComptimeInt, UNKNOWN_VALUE dimensions become
Scalar. Hierarchical layouts (e.g. from tile_to_shape) are
collapsed via product_each so each mode becomes a single value.
Parametersβ
- βlt_layout (
Layout): The legacy Layout to convert.
Structsβ
- β
NullableTileTensor: A TileTensor variant whose pointer may be absent (null). - β
TileTensor: A tensor type with trait-based layouts supporting nested and hierarchical indexing.
Functionsβ
- β
flatten_leading: Merge the first two dimensions of a rank-3 TileTensor: (A, B, C) -> (A*B, C). - β
lt_to_tt: Convert a LayoutTensor to a TileTensor. - β
lt_to_tt_idx: Likelt_to_ttbut with an explicitlinear_idx_typeoverride. - β
stack_allocation: Allocate a TileTensor on the stack with the given layout.