Mojo function
layout_tensor_reshape
layout_tensor_reshape[output_rank: Int, dtype: DType, single_thread_blocking_override: Bool](input: TileTensor[dtype, LayoutType, origin, address_space=address_space, linear_idx_type=linear_idx_type, element_shape_types=element_shape_types], new_shape: IndexList[output_rank]) -> TileTensor[dtype, Layout[#kgen.variadic.splat<:trait<_layout::__coord::_CoordLike> _layout::__coord::_RuntimeInt<:!lit.struct<_std::_builtin::_dtype::_DType> {:dtype si64}>, #lit.struct.extract<:!lit.struct<_std::_builtin::_int::_Int> output_rank, "_mlir_value"> : index>, #kgen.variadic.splat<:trait<_layout::__coord::_CoordLike> _layout::__coord::_RuntimeInt<:!lit.struct<_std::_builtin::_dtype::_DType> {:dtype si64}>, #lit.struct.extract<:!lit.struct<_std::_builtin::_int::_Int> output_rank, "_mlir_value"> : index>], origin, address_space=address_space]
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!