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
StaticReshape
struct StaticReshape
Implemented traitsβ
AnyType,
ImplicitlyDestructible
Methodsβ
update_input_viewβ
static def update_input_view[dtype: DType, output_rank: Int, //, output_static_shape: IntTuple](input: ManagedTensorSlice[Input, static_spec=input.static_spec], shape: IndexList[output_rank]) -> ManagedTensorSlice[Input, static_spec=input.static_spec.with_row_major_int_tuple_layout[output_rank, output_static_shape]()]
Returns:
executeβ
static def execute[target: StringSlice[StaticConstantOrigin], _trace_name: StringSlice[StaticConstantOrigin], dtype: DType, output_rank: Int](output: ManagedTensorSlice[Output, static_spec=output.static_spec], input: ManagedTensorSlice[Input, static_spec=input.static_spec], shape: IndexList[output_rank], ctx: DeviceContext)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!