fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

the instance order is fixed in round_robin_zip_dataset and multi_corpus_sampled_dataset

Open hxbai opened this issue 7 years ago • 1 comments

In these two datasets, self._ordered_indices is set once

so in different epoch, the data instance order is the same.

Is it a bug or a design?

Thanks!

hxbai avatar Jun 10 '19 11:06 hxbai

Ordered indices controls how the examples are chunked into batches. Once the batches are created we typically keep them fixed, but we iterate over the batches in a different order each epoch. This is done in EpochBatchIterator.next_epoch_itr.

myleott avatar Jun 10 '19 12:06 myleott