I’ new to Pytorch and I got some trouble…
I want to build a rank-model to judge the similiarity of question and its answers(include right answers and wrong answers). And I use LSTM to be an encoder. There are two LSTMs in my model and they share the weight. So my model’s input are two sequence(question and answer). But if I use batch, reordering will disrupt the correspondence between questions and answers.
What should I do?