Conditional execution of one of two branches based on a scalar boolean
predicate. Unlike nvl_ifelse() which operates element-wise, this
evaluates only the selected branch.
Arguments
- pred
(
tensorish)
Scalar boolean predicate that determines which branch to execute.- true, false
(NSE)
Expressions for the true and false branches. Both must return outputs with the same structure, dtypes, and shapes.
StableHLO
Lowers to stablehlo::hlo_if().