A single-layer LSTM encoder.