PyTorch Forums
Adversarial network feature decorrelation: passing loss gradient
autograd
damar
(damar)
May 20, 2022, 2:16pm
2
I eventually found a much more elegant solution here:
[Solved] Reverse gradients in backward pass
show post in topic