Based on previous answers, and official docs, what I did works for me.
def set_seed(seed):
    torch.backends.cudnn.deterministic = True
    torch.backends.cudnn.benchmark = False
    torch.manual_seed(seed)
    torch.cuda.manual_seed_all(seed)
    np.random.seed(seed)
    random.seed(seed)

set_seed(0)  # 0 or any number you want for the seed
in the  DataLoader(), I also set the num_workers = 0
This setting makes my results reproducible.
I am using latest Pytorch version is ‘1.5.0’.