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, 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, 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[output_rank]