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

Add parameter precompute_grad to CgInfluence init, adapt documentation #498

Merged
merged 4 commits into from
Feb 19, 2024

Conversation

schroedk
Copy link
Collaborator

@schroedk schroedk commented Feb 12, 2024

Description

This PR closes #497

Changes

  • Expose the parameter precopmute_grad. Setting to False, results in the averaging of the second order derivatives over the batches, which requires less memory (no need to keep the computation graph) but is slower in general.

Checklist

  • Wrote Unit tests (if necessary)
  • Updated Documentation (if necessary)
  • Updated Changelog
  • If notebooks were added/changed, added boilerplate cells are tagged with "tags": ["hide"] or "tags": ["hide-input"]

@schroedk schroedk requested a review from Xuzzo February 12, 2024 10:19
Copy link
Collaborator

@Xuzzo Xuzzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for the fix

@schroedk schroedk merged commit cc56aef into develop Feb 19, 2024
18 checks passed
@schroedk schroedk deleted the fix/497-cg-memory-leak branch March 11, 2024 11:42
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.

Memory leak in CgInfluence
2 participants