I wish to build a Denoising autoencoder I just use a small definition from another PyTorch thread to add noise in the MNIST dataset. While training my model gives  identical  loss results. please tell me what I am doing wrong.
def add_noise(inputs):
noise = torch.randn_like(inputs)*0.3
return inputs + noise 

Screenshot_1201116×729 34.1 KB