Open lirus7 opened 7 years ago
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 used
loop_vars = [time_steps, iterations, U, u_t, x, music] [_, _, _, _, _, music] = tf.while_loop(lambda count, num_iter, *args: count < num_iter, generate_recurrence, loop_vars, shape_invariants=[time_steps.get_shape(), iterations.get_shape(), U.get_shape(), u_t.get_shape(),x.get_shape(), tf.TensorShape([None, None])])
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)