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

Function or_

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

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

(a, b)

Source from the content-addressed store, hash-verified

60
61
62def or_(a, b):
63 """Functional form of "or". Uses lazy evaluation semantics."""
64 a_val = a()
65 if tensor_util.is_tensor(a_val):
66 return _tf_lazy_or(a_val, b)
67 return _py_lazy_or(a_val, b)
68
69
70def _tf_lazy_or(cond, b):

Callers

nothing calls this directly

Calls 4

aClass · 0.85
_tf_lazy_orFunction · 0.85
_py_lazy_orFunction · 0.85
is_tensorMethod · 0.80

Tested by

no test coverage detected