Hi @albanD , thank you for your explanation.
I have read your explanation and the Autograd documentation page, but sorry I still don’t understand how to do it. Would you mind giving a small example of how to do it both methods you explained? Thank you very much for your help.
Warm regards,
Reza Qorib