Skip to main content

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, ImplicitlyDestructible

Methodsโ€‹

__getitem_param__โ€‹

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

Returns:

StaticTensorSpec

Was this page helpful?