Expand

Description

Broadcasts the input tensor to the specified shape.

Input

Two inputs:

x: Input tensor. Data type: float16, float, bool, int64, int32, int8, uint8.Data format supports ND.

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