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 module
reshape
Implements the reshape operation that reinterprets a contiguous tensor's data under a new shape.
Functionsโ
- โ
reshape: Returns a view of the contiguousinputtensor reinterpreted undernew_shapewith matching element count. - โ
reshape_shape: Reads a target shape from a buffer and returns it as a staticIndexList, inferring any single-1dimension.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!