What are the parameters of TensorFlow's dynamic_rnn for this simple data set?
问题 I want to train an RNN language model using TensorFlow. My training data is a sequence of 5 tokens represented with integers like so x = [0, 1, 2, 3, 4] I want the unrolled length of the RNN to be 4, and the training batch size to be 2. (I chose these values in order to require padding.) Each token has an embedding of length 3 like so 0 -> [0, 0 ,0] 1 -> [10, 10, 10] 2 -> [20, 20, 20] 3 -> [30, 30, 30] 4 -> [40, 40, 40] What should I pass as parameters to tf.nn.dynamic_rnn ? This is mostly a