0

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

milk
  • 1
  • 1
  • Welcome to stack overflow! Please [edit](https://stackoverflow.com/posts/74708697/edit) to include a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) showing your code and a specific description of the problem or error so that we can understand your question – LucasBorges-Santos Dec 06 '22 at 20:42

0 Answers0