| Parameter | Details |
|---|---|
| pred | a TensorFlow tensor of type bool |
| fn1 | a callable function, with no argument |
| fn2 | a callable function, with no argument |
| name | (optional) name for the operation |
pred cannot be just True or False, it needs to be a Tensorfn1 and fn2 should return the same number of outputs, with the same types.