def lstm_cell(): cell = rnn.BasicLSTMCell(hidden_dim, state_is_tuple=True, activation=tf.tanh) return cell #stacked LSTM