Conditional execution of two branches.
Unlike nv_ifelse(), which selects elements, this executes only one
of the two branches depending on a scalar predicate.
Arguments
- pred
(
tensorishof boolean type, scalar)
Predicate.- true
(
expression)
Expression for the true branch (non-standard evaluation).- false
(
expression)
Expression for the false branch (non-standard evaluation). Must return outputs with the same shapes as the true branch.
See also
nvl_if() for the underlying primitive, nv_ifelse() for
element-wise selection.