Mojo function
layout_tensor_reshape
layout_tensor_reshape[output_rank: Int, dtype: DType, single_thread_blocking_override: Bool](input: TileTensor[dtype, input.LayoutType, input.origin, address_space=input.address_space, linear_idx_type=input.linear_idx_type, element_size=input.element_size], new_shape: IndexList[output_rank]) -> TileTensor[dtype, Layout[#kgen.variadic.tabulate(output_rank, [idx: __mlir_type.index] RuntimeInt[DType.int64]), #kgen.variadic.tabulate(output_rank, [idx: __mlir_type.index] RuntimeInt[DType.int64])], input.origin, address_space=input.address_space]
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!