I want to calculate the derivative to the input vector, and adding noise to it.
so how am I supposed to pass a trained network module to a function?
And can I just do one forward pass, then use torch.autograd.backward to get the derivatives input.grad.
Is there any more elegant way for this?