Lazy-eval equivalent of "or" for Tensors.
(cond, b)
| 68 | |
| 69 | |
| 70 | def _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 | |
| 76 | def _py_lazy_or(cond, b): |