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

Function _tf_lazy_and

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

Lazy-eval equivalent of "and" for Tensors.

(cond, b)

Source from the content-addressed store, hash-verified

49
50
51def _tf_lazy_and(cond, b):
52 """Lazy-eval equivalent of "and" for Tensors."""
53 # TODO(mdan): Enforce cond is scalar here?
54 return control_flow_ops.cond(cond, b, lambda: cond)
55
56
57def _py_lazy_and(cond, b):

Callers 1

and_Function · 0.85

Calls 1

condMethod · 0.45

Tested by

no test coverage detected