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

Function and_

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

Functional form of "and". Uses lazy evaluation semantics.

(a, b)

Source from the content-addressed store, hash-verified

41
42
43def and_(a, b):
44 """Functional form of "and". Uses lazy evaluation semantics."""
45 a_val = a()
46 if tensor_util.is_tensor(a_val):
47 return _tf_lazy_and(a_val, b)
48 return _py_lazy_and(a_val, b)
49
50
51def _tf_lazy_and(cond, b):

Callers

nothing calls this directly

Calls 4

aClass · 0.85
_tf_lazy_andFunction · 0.85
_py_lazy_andFunction · 0.85
is_tensorMethod · 0.80

Tested by

no test coverage detected