MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / cond

Function cond

tensorflow/python/ops/control_flow_ops.py:1750–1919  ·  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. Note that the conditional execution applies only to the operations defined in

(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 4

AssertFunction · 0.70
while_loopFunction · 0.70
_build_caseFunction · 0.70
_validateFunction · 0.50

Calls 15

BuildCondBranchMethod · 0.95
CondContextClass · 0.85
_UnpackIfSingletonFunction · 0.85
name_scopeMethod · 0.80
in_eager_modeMethod · 0.80
prevent_fetchingMethod · 0.80
EnterMethod · 0.80
ExitResultMethod · 0.80
ExitMethod · 0.80
flattenMethod · 0.80
add_to_collectionMethod · 0.80

Tested by

no test coverage detected