Reshape
Description
Change the input dimension.
Input
Two inputs:
data: tensor of type float16, int8, int16, uint16, uint8, int32, int64, uint32, uint64, bool or double.
shape: tensor of type int64, which defines the shape of the output tensor.
Output
One output:
reshaped: tensor. Has an identical data type to the input data.
Attribute
allowzero: The default value is int 0. In this case, if any value in the input shape is equal to 0, the corresponding dimension value is dynamically copied from the input data. allowzero=int 1 indicates that if any value in the input shape is zero, the zero value is followed, similar to NumPy.
ONNX Opset Support
Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18
Parent topic: Operators Specifications of the AI Framework