See https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/while_loop for additional details.
ag_while_opts( ..., shape_invariants = NULL, parallel_iterations = 10L, back_prop = TRUE, swap_memory = FALSE, maximum_iterations = NULL )
Ignored, used to ensure all arguments supplied are named.
The shape invariants for the loop variables.
The number of iterations allowed to run in parallel. It must be a positive integer.
Whether GPU-CPU memory swap is enabled for this loop.
Optional maximum number of iterations of the while
loop to run. If provided, the
`NULL`` invisibly, called for it's side effect.
This is only applicable when autograph in graph mode, otherwise this has no effect.