About encoder(input_tensor[ei], encoder_hidden)

Thank you! And I found this solution to the similar question very helpful too.