The model is still working, if I use some random values to initialize it and run a simple forward pass:
model = DenoisingAutoencoder(10, 10)
out = model(torch.randn(1, 10))

Could you post the code snippet where you are initializing the model and which input shape you are using?
If you are passing numpy arrays as the input, make sure to transform them to PyTorch tensors via torch.from_numpy.