Expand
Description
Broadcasts the input tensor to the specified shape.
Input
Two inputs:
input: tensor of type float16, float, bool, or int64.
shape: tensor of type int64.
Output
One output:
y: tensor of the identical data type and shape as input x.
Constraints
You need to modify the model to change the input shape from placeholder to const. You can use onnxsimplifier to simplify the model.
ONNX Opset Support
Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18
Parent topic: Operators Specifications of the AI Framework