def seed_everything(SEED=42):
    random.seed(SEED)
    np.random.seed(SEED)
    torch.manual_seed(SEED)
    torch.cuda.manual_seed(SEED)
    torch.cuda.manual_seed_all(SEED)
    torch.backends.cudnn.deterministic = True
    os.environ['PYTHONHASHSEED']=str(SEED)
    # torch.backends.cudnn.benchmark = False

SEED=42
seed_everything(SEED=SEED)

I am seeding everything as shown above. Each part is reproducible but when I change from one part to other one , I am observing this. Can I know whats the problem ?