Hi, I am trying to generate a series of random pairs {x_1, x_2} from a specific dataset X, and I have done similar things before in TensorFlow by implementing a pair shuffling function in on_epoch_end() function of the TensorFlow generator, I am just wondering if there are similar functions for dataloader in PyTorch?
Note: setting shuffle=True in the dataloader would not work for me, since it only shuffle data in X, not generates random pairs.
Thank you!