()
| 181 | ValueError: If parallel_iterations is not None and not an integer > 1. |
| 182 | """ |
| 183 | def f(): |
| 184 | return _pfor_impl(loop_fn, iters, parallel_iterations=parallel_iterations) |
| 185 | # Note that we wrap into a tf.function if in eager execution mode or under |
| 186 | # XLA compilation. The latter is so that we don't compile operations like |
| 187 | # tf.placeholder that are created by the loop body. |