This talks about detaching the previous hidden state to save from the problem of exploding/Vanishing gradients. But here, the problem is to run the auto-encoder, I am providing the input to the model where requires_grad = True to run it successfully. However, it should not be the case as we don’t update the input given to the model. So, inherently something is going wrong as ideally it should not update the input