You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: The shape for while_1/Merge_2:0 is not an invariant for the loop. It enters the loop with shape (1, 100), but has shape (?, 100) after one iteration. Provide shape invariants using either the shape_invariants argument of tf.while_loop or set_shape() on the loop variables
#7
Open
lirus7 opened this issue
Nov 14, 2017
· 3 comments
The text was updated successfully, but these errors were encountered:
lirus7
changed the title
ValueError: shapes must be a (possibly nested) list of shapes.
ValueError: The shape for while_1/Merge_2:0 is not an invariant for the loop. It enters the loop with shape (1, 100), but has shape (?, 100) after one iteration. Provide shape invariants using either the shape_invariants argument of tf.while_loop or set_shape() on the loop variables
Nov 14, 2017
Doesn't that message come from using tf.while_loop() ?
I had similar message, so I gave 'shape' info after 'variable' in tf.while_loop()
And, it is probably because 'music' gets concatenated every loop. So it's shape changes, eventually it will become 'num_iter' x 'n_visible' size...
@junwoo091400: Are you saying that you've specified the 'shape_invariants' after the 'loop_vars' in the while_loop? Or have you changed something else?
I ask only because I tried adding the 'shape_invariants' but I still get the same problem.
I tried running your code with slight tweaks which are no way related to this part but this doesnt seem to be working .
`
Uarr = tf.scan(rnn_recurrence, x, initializer=u0)
The text was updated successfully, but these errors were encountered: