Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added backpack wrapper #771

Closed
wants to merge 12 commits into from
Closed

Conversation

MatteoWohlrapp
Copy link
Collaborator

The idea is to use a wrapper around the backpack package. That way, whenever there are changes in the library, we only need to adjust the wrapper and not all occurrences in the code.

It should also help with importing dynamically and not be used whenever the fishr trainer is not in use.
Another option would be to refrain from using a wrapper and import backpack directly into the functions that use it by adding this directly to 'cal_dict_variance_grads' in:
backpack = importlib.import_module('backpack') extend = importlib.import_module('backpack.extend') Variance = importlib.import_module('backpack.extensions').Variance

@smilesun smilesun changed the base branch from fishr_re_pr to master January 29, 2024 12:45
@smilesun smilesun changed the base branch from master to fishr_re_pr January 29, 2024 12:53
@smilesun smilesun changed the base branch from fishr_re_pr to master January 30, 2024 08:54
@smilesun
Copy link
Collaborator

is this still valid? @MatteoWohlrapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants