I try to iterate inside a while loop but I get this error, I have several variables involved in the loop, the solution I think is to use the loop_vars, but I am not clear if for all the variables or only for the out, I am in my beginnings in tensorflow .
I have this error
ValueError: Input tensor 'lambda_1/GatherNd_1:0' enters the loop with shape (None,), but has shape after one iteration. To allow the shape to vary across iterations, use the shape_invariants
argument of tf.while_loop to specify a less-specific shape.
I tried using loop_vars, for the condition variable(out), but I still get the error