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

Function _tf_lazy_or

tensorflow/python/autograph/operators/logical.py:70–73  ·  view source on GitHub ↗

Lazy-eval equivalent of "or" for Tensors.

(cond, b)

Source from the content-addressed store, hash-verified

68
69
70def _tf_lazy_or(cond, b):
71 """Lazy-eval equivalent of "or" for Tensors."""
72 # TODO(mdan): Enforce cond is scalar here?
73 return control_flow_ops.cond(cond, lambda: cond, b)
74
75
76def _py_lazy_or(cond, b):

Callers 1

or_Function · 0.85

Calls 1

condMethod · 0.45

Tested by

no test coverage detected