with tf.variable_scope('LSTM') as vs:
    for i in range(num_steps):
        output[i], state = cell(input_data[i], state)
Tensorflow: How to get all variables from rnn_cell.BasicLSTM & rnn_cell.MultiRNNCell