import tensorflow as tf

            with tf.variable_scope('rnn_unroll'):
                state = initial_state
                outputs = []
                for i in xrange(rnn_nunroll):
                    if i > 0:
                        tf.get_variable_scope().reuse_variables()
                    (cell_output, state) = cell(rnn_inputs[i], state)
                    outputs.append(cell_output)
                final_state = state

