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

Function _NextIteration

tensorflow/python/ops/control_flow_ops.py:201–211  ·  view source on GitHub ↗
(data, name=None)

Source from the content-addressed store, hash-verified

199
200
201def _NextIteration(data, name=None):
202 data = ops.internal_convert_to_tensor_or_composite(data, as_ref=True)
203 if isinstance(data, ops.Tensor):
204 if data.dtype._is_ref_dtype: # pylint: disable=protected-access
205 return ref_next_iteration(data, name=name)
206 else:
207 return next_iteration(data, name=name)
208 elif isinstance(data, composite_tensor.CompositeTensor):
209 return nest.map_structure(_NextIteration, data, expand_composites=True)
210 else:
211 raise TypeError("Type %s not supported" % type(data))
212
213
214def _Enter(data,

Callers 5

_AddNextAndBackEdgeFunction · 0.85
AddForwardLoopCounterMethod · 0.85

Calls 1

typeFunction · 0.85

Tested by

no test coverage detected