Skip to main content

Mojo function

reshape_shape

reshape_shape[output_rank: Int, input_type: DType, target_shape_type: DType](input_buf: TileTensor[input_type, input_buf.LayoutType, input_buf.origin, address_space=input_buf.address_space, linear_idx_type=input_buf.linear_idx_type, element_size=input_buf.element_size], target_shape_buf: TileTensor[target_shape_type, target_shape_buf.LayoutType, target_shape_buf.origin, address_space=target_shape_buf.address_space, linear_idx_type=target_shape_buf.linear_idx_type, element_size=target_shape_buf.element_size]) -> IndexList[output_rank]

Returns:

IndexList

Was this page helpful?