Where

Description

Returns the corresponding element from X or Y based on the condition.

Input

condition: bool type. If the value is True, X is returned. Otherwise, Y is returned.

X: tensor of type float16, float, uint8, int8, or int32.

Y: tensor of the identical data type as X.

Output

output: tensor of the identical data type as X and Y. The shape is the shape of X and Y after broadcasting.

Constraints

None.

ONNX Opset Support

Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18