Repeat `body` while the condition `cond` is true. ```python tf.while_loop( cond, body, loop_vars, shape_invariants=None, parallel_iterations=10, back_prop=True, swap_memory=False, name=None, maximum_iterations=None, return_same_structure=False ) ``` https://www.tensorflow.org/api_docs/python/tf/while_loop