Per-sample gradient #845
Unanswered
DINHQuangDung1999
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am trying to implement an algorithm which requires knowing the squared variance of gradients. The paper can be found here. For this, I need to compute gradients of the network for each sample in my batch. As far as I understand, tape.backward() computes gradients for each sample and then averages them. Is there any flag which outputs gradients for each sample before their averaging? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions