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 struct

StaticTensorSpecList

struct StaticTensorSpecList[dtype: DType, rank: Int, //, internals_list: ParameterList[internals_list.values], shapes_list: ParameterList[shapes_list.values], strides_list: ParameterList[strides_list.values]]

A statically indexable list of data that can be assembled into a StaticTensorSpecList on demand. This handles the complexities that arise with heterogenous specs.

Implemented traitsโ€‹

AnyType, ImplicitlyDeletable

Methodsโ€‹

__getitem_param__โ€‹

def __getitem_param__[index: Int](self, out result: StaticTensorSpec[dtype, rank, Layout[*?, *?]])

Returns:

StaticTensorSpec[dtype, rank, Layout[*?, *?]]