Commit 597b911f authored by Skye Wanderman-Milne's avatar Skye Wanderman-Milne Committed by TensorFlower Gardener
Browse files

Support returning Operations from cond_v2.

This change mimics the behavior of the current tf.cond implementation,
which returns the predicate value for each Operation returned
(specifically, it returns the pivot value). We may want to revisit
this behavior for 2.0, e.g. returning None or disallowing it entirely,
but we'd like to continue supporting it in compat.v1.

PiperOrigin-RevId: 217930557
parent d1b2537f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment