Effect of np.random.seed(epoch) inside DistributedSampler.set_epoch()?

Suppose I call np.random.seed(epoch) inside a PyTorch DistributedSampler’s set_epoch(epoch) method, what will happen?

    def set_epoch(self, epoch):
        np.random.seed(epoch)

Will that screw up the randomness of my samples?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum