Open FrederikWarburg opened 2 years ago
Hi, thanks for your feature request.
we have an example how to add new parameterized layers to first-order extensions. It's a good starting point. Since nn.Upsample
has no parameters, you only have to implement how information for DiagGGNExact
is backpropagated through the layer.
To do that, you would
DiagGGNUpsample
that inherits from ModuleExtension
backpropagate
function to multiply the backpropagated quantity by nn.Upsample
's transposed Jacobian.DiagGGN
extension so that BackPACK knows to call it when the extension encounters a nn.Upsample
module.It would be great if you gave it a shot and submitted a PR! I can provide more pointers to help.
Best, Felix
Hi
I need to compute the approximate hessian for a decoder network. The decoder consists of conv2d and upsample layers. Currently, backpack does not supports nn.Upsample. Since it is a non-parametric layer, it might not be too difficult to implement?
Here I define my model and a data point.
will return this error
Could you help implement this feature?