Keep Repeating the Same Index in Data Loader N times

Hi,

I have a case when for a given index in the dataset, i want my dataloader to return permutations of data[‘index’] n times.

How can i do so?

i.e. can i manually control the updating of index and yet keep returning the data smples?

So, artifically if my dataset has k samples, the new approach will return k * n samples in one epoch?

I’m not sure how your actual logic is, but I think a custom sampler might do what you are looking for.