'Get RNN cell.'

def get_cell(self):

    self.cell_input_dim = (self.internal_dim // 2)
    cell = tf.contrib.rnn.LSTMCell(self.cell_input_dim, state_is_tuple=False, reuse=tf.get_variable_scope().reuse)
    cell = tf.contrib.rnn.OutputProjectionWrapper(cell, self.output_dim, reuse=tf.get_variable_scope().reuse)
    return cell
