(self, v)
| 1047 | return real_val |
| 1048 | |
| 1049 | def _BuildCondTensor(self, v): |
| 1050 | if isinstance(v, ops.Operation): |
| 1051 | # Use pivot as the proxy for this op. |
| 1052 | return with_dependencies([v], self._pivot) |
| 1053 | else: |
| 1054 | v = nest.map_structure( |
| 1055 | _convert_tensorarray_to_flow, v, expand_composites=True) |
| 1056 | return self._ProcessOutputTensor(ops.convert_to_tensor(v)) |
| 1057 | |
| 1058 | def BuildCondBranch(self, fn): |
| 1059 | """Add the subgraph defined by fn() to the graph.""" |
nothing calls this directly
no test coverage detected