I was reading Seq2seq 12. The below code is for getting output from LSTM for various time steps. Is it possible to eliminate this loop and get the output in one line?
    for ei in range(input_length):
        encoder_output, encoder_hidden = encoder(
            input_tensor[ei], encoder_hidden)
        encoder_outputs[ei] = encoder_output[0, 0]