1。
##batch_size=30, seq_length=6;cell.input_size=100 Y = np.random.randn(30,6, 100)
inputs = tf.split(Y, 6, 1)
inputs2 = [tf.squeeze(input_, [1]) for input_ in inputs] ##inputs2.size=(6,30,100)
2.
inputs = tf.unstack(Y, n_steps, 1)
1。
##batch_size=30, seq_length=6;cell.input_size=100 Y = np.random.randn(30,6, 100)
inputs = tf.split(Y, 6, 1)
inputs2 = [tf.squeeze(input_, [1]) for input_ in inputs] ##inputs2.size=(6,30,100)
2.
inputs = tf.unstack(Y, n_steps, 1)