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

Function _tensor_array_to_flow

tensorflow/python/ops/while_v2.py:1124–1131  ·  view source on GitHub ↗
(loop_vars)

Source from the content-addressed store, hash-verified

1122
1123
1124def _tensor_array_to_flow(loop_vars):
1125
1126 def f(maybe_ta):
1127 if isinstance(maybe_ta, tensor_array_ops.TensorArray):
1128 return maybe_ta.flow
1129 return maybe_ta
1130
1131 return nest.map_structure(f, loop_vars, expand_composites=True)
1132
1133
1134def _build_maximum_iterations_loop_var(maximum_iterations):

Callers 2

while_loopFunction · 0.85
wrapped_bodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected