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

Method _BuildCondTensor

tensorflow/python/ops/control_flow_ops.py:1049–1056  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

_ProcessOutputTensorMethod · 0.95
with_dependenciesFunction · 0.85

Tested by

no test coverage detected