Hi, Matthieu Heitz.
Did you solve this problem? Actually, I’m also finding the solution for the similar problem.
Can we do selective gradient calculation in backward() function before updating?
Could you please let me know if you found the answer?
Best