Structure for backwarding gramians #148
PierreQuinton
started this conversation in
General
Replies: 1 comment
-
Here is a recap of the things I have discovered while exploring:
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
It appears to be important to be able to bakward Gramians of Jacobians through some
Sequential
. It is thus important that we think about how to do that.I believe we could in principle have a
backward_gramian
method that takes as input the vector to backward (the output of the module) and theSequential
. It would then go through each layer, compute the Jacobian and accumulate the Gramian.From this we could extract weights (with a weight extractor that maps a Gramian to weights) and backpropagates them using a normal call to
autograd.backward
.This may not be the best way to proceed, so we need further discussions.
Beta Was this translation helpful? Give feedback.
All reactions