If
Description
Logic control judgment operator.
Input
One input:
cond: If op condition.
Output
One or more outputs:
y: tensor or tensor sequence.
Property
else_branch: branch where the condition is false.
then_branch: branch where the condition is true.
ONNX Opset Support
Opset v8/v9/v10/v11/v12/v13/v14/v15/v16/v17/v18
Parent topic: Operators Specifications of the AI Framework