f-dangel / f-dangel/backpack

Optimizing the locations of the Jacobians

Open
#300 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
617
Forks
57
PR merge metrics
No merged PRs in 30d

Description

Hi!

Thanks for the contributions!! I am facing a weird sutiation in which I am computing the jacobians of a model w.r.t to the parameters (which are fixed and cannot be tuned) and I want to optimize the input locations of those jacobians, lets say the x variables. Two different things are happening to me when trying to to this:
1. The locations retain a .grad value when using the backward call to compute the jacobians w.r.t to the parameters using BackPack.
2. The backward call of my loss function does not alter the .grad value of the inputs used to compute the jacobians,

Is there any way I can fix this?

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by reproducing the two backward-call cases described for BackPACK Jacobians, using fixed parameters, optimized input locations, and the loss function; done means the intended input gradient behavior is consistent and documented by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.