dhpollack:

rnn_output_last = rnn.index_select(seqeunce_dim, Variable(LongTensor(lengths)))


Thank you for the prompt response. What does the index_select function do I can’t seem to find any documentation for it.