Thanks a lot.
But doesn’t the model update the inputs in each iteration by making the inputs require grads? Because the model cannot distinguish between parameters and inputs in this way, right?
Also, would you please write me the code that extracts these gradients w.r.t the inputs from backward()?
Thank you very much.