MCPcopy Create free account
hub / github.com/alibaba/nann / cond

Function cond

tensorflow/tensorflow/python/ops/control_flow_ops.py:1099–1293  ·  view source on GitHub ↗

Return `true_fn()` if the predicate `pred` is true else `false_fn()`. `true_fn` and `false_fn` both return lists of output tensors. `true_fn` and `false_fn` must have the same non-zero number and type of outputs. **WARNING**: Any Tensors or Operations created outside of `true_fn` and `fals

(pred,
         true_fn=None,
         false_fn=None,
         strict=False,
         name=None,
         fn1=None,
         fn2=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

AssertFunction · 0.70
cond_for_tf_v2Function · 0.70
while_loopFunction · 0.70

Calls 15

BuildCondBranchMethod · 0.95
TypeErrorFunction · 0.85
true_fnFunction · 0.85
_UnpackIfSingletonFunction · 0.85
CondContextClass · 0.85
executing_eagerlyMethod · 0.80
prevent_fetchingMethod · 0.80
ExitResultMethod · 0.80
add_to_collectionMethod · 0.80
switchFunction · 0.70
mergeFunction · 0.70

Tested by

no test coverage detected