:nosearch: .. _op_ai_onnx_Reshape-13: Reshape - version 13 ==================== This page documents version **13** of operator **Reshape**. See :doc:`Reshape` for the latest version (since version 25). - **Domain**: ``ai.onnx`` - **Since version**: 13 Reshape the input tensor similar to numpy.reshape. **Inputs** - **data** (*T*): An input tensor. - **shape** (*tensor(int64)*): Specified shape for output. **Outputs** - **reshaped** (*T*): Reshaped data. **Type Constraints** - **T**: Constrain input and output types to all tensor types. Allowed types: tensor(bfloat16), tensor(bool), tensor(complex128), tensor(complex64), tensor(double), tensor(float), tensor(float16), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(string), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8). Examples -------- **test_cc_reshape_reordered** .. code-block:: text Node: Reshape(data, shape) -> (reshaped) .. code-block:: text Inputs: data: shape=(2, 3), dtype=float32 [[1., 2., 3.], [4., 5., 6.]] shape: shape=(2,), dtype=int64 [3, 2] Outputs: reshaped: shape=(3, 2), dtype=float32 [[1., 2.], [3., 4.], [5., 6.]]