Closed RahulBhalley closed 6 years ago
did you solve it?
Since newer version of TensorFlow replaced While
with while_loop
replace lines 77 and 78 with
[_, _, x_sample] = control_flow_ops.while_loop(lambda count, num_iter, *args: count < num_iter, gibbs_step, [ct, tf.constant(k), x], parallel_iterations=1, back_prop=False)
For removing further possible errors:
tf.mul
, tf.sub
to tf.multiply
, tf.subtract
respectively in lines 95, 96, and 97. song = song[:int(np.floor(song.shape[0]/num_timesteps))*num_timesteps]
which basically uses int
on np.floor
to make slicing of indices integral.
I am getting the following error: