I also wonder why it need to step by step for the sequence during the training process.
<seq2seq_translation_tutorial>
In train(),
for ei in range(input_length):
encoder_output, encoder_hidden = encoder(
input_variable[ei], encoder_hidden)
encoder_outputs[ei] = encoder_output[0][0]
The input has the size (seq, batch, embedding).