Yes I did include them. However, when my BucketIterator sorts the sentences into batches, the batches are in random order when I call “text, text_length = batch.text”, so there’s no way I can predict which batch I will get beforehand. I am able to extract the sentence lengths, but I can only do that once I call “text, text_length = batch.text”. However, I need to be able to initialize the model outside of the two for loops, so I need to be able to predict beforehand what the order of the batches are.