A one-layer LSTM encoder.