ParameterDetailspreda TensorFlow tensor of type boolfn1a callable function, with no argumentfn2a callable function, with no argumentname(optional) name for the operation
pred cannot be just True or False, it needs to be a Tensor
The function fn1 and fn2 should return the same number of outputs...