MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _cond

Function _cond

tensorflow/python/kernel_tests/cond_v2_test.py:1406–1410  ·  view source on GitHub ↗
(pred, true_fn, false_fn, name)

Source from the content-addressed store, hash-verified

1404
1405
1406def _cond(pred, true_fn, false_fn, name):
1407 if _is_old_cond():
1408 return control_flow_ops.cond(pred, true_fn, false_fn, name=name)
1409 else:
1410 return cond_v2.cond_v2(pred, true_fn, false_fn, name=name)
1411
1412
1413def _is_old_cond():

Callers 3

false_fnMethod · 0.85
true_fnMethod · 0.85
false_true_fnMethod · 0.85

Calls 2

_is_old_condFunction · 0.85
condMethod · 0.45

Tested by

no test coverage detected