Hi @ptrblck,
Thanks for the reply. I mean if I execute the last block multiple of times, I can get a different output. I thought by running the code below my dataset will be generated.
noisy_mnist_train = SyntheticNoiseDatasetsalttr(mnist_train, 'train')
noisy_mnist_test = SyntheticNoiseDatasetsaltte(mnist_test, 'test')
train_set, val_set = torch.utils.data.random_split(noisy_mnist_train, [55000, 5000], generator=torch.Generator().manual_seed(42))

Then that dataset is fixed. When I run the block below any number of times just by hitting shift+enter in jupyter notebook I should get the same output.
torch.manual_seed(123)
bt = DataLoader(val_set,batch_size=1, shuffle= True)
bt =next(iter(bt))
noisy,clean = bt
plt.imshow(noisy.squeeze(), cmap='gray')

All I want  is to generate noisy data with the seed value s and b.