(data, name=None)
| 199 | |
| 200 | |
| 201 | def _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 | |
| 214 | def _Enter(data, |
no test coverage detected