Skip to content

Structure for backwarding gramians #100

@PierreQuinton

Description

@PierreQuinton

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 the Sequential. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions