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 function
append_shape
def append_shape(in_shape: Coord[*in_shape.element_types], last2nd: Int, last: Int) -> DynamicCoord[.int64, (Int(len(in_shape.element_types.values)) + Int(2))]
Append input shape by inserting last2nd and last at the end.
Args:
- โin_shape (
Coord[*in_shape.element_types]): Input shape to extend. - โlast2nd (
Int): Value inserted at the second-to-last position. - โlast (
Int): Value inserted at the last position.
Returns:
DynamicCoord[.int64, (Int(len(in_shape.element_types.values)) + Int(2))]