How to add random seed to PyTorch DataLoader?

How to add random seed in -torch.utils.data.DataLoader(trainset, batch_size=batch_size, shuffle=True)

Hi @Jatin_garg,
Please refer the following thread: Is there a way to fix the random seed of every workers in dataloader?