(maximum_iterations)
| 1132 | |
| 1133 | |
| 1134 | def _build_maximum_iterations_loop_var(maximum_iterations): |
| 1135 | if maximum_iterations is None: |
| 1136 | # Default value for max_num_elements to EmptyTensorList meaning that the |
| 1137 | # list size is unbounded. |
| 1138 | maximum_iterations = -1 |
| 1139 | # EmptyTensorList expects `max_num_elements` to be of type int32. |
| 1140 | return ops.convert_to_tensor( |
| 1141 | maximum_iterations, dtype=dtypes.int32, name="maximum_iterations") |
| 1142 | |
| 1143 | |
| 1144 | def _build_accumulator_name(tensor): |