Understanding the sequence-to-sequence network with attention