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

Fix memory leak in saved tensors #1688

Merged
merged 3 commits into from
Jan 24, 2025
Merged

Fix memory leak in saved tensors #1688

merged 3 commits into from
Jan 24, 2025

Conversation

t-vi
Copy link
Collaborator

@t-vi t-vi commented Jan 24, 2025

Fixes: #1687

Basically we need to move the saved tensors to the function that outputs tensors that might also be saved.

All debugging credit belongs to @kshitij12345 @riccardofelluga .

@t-vi t-vi requested review from mruberry and lantiga as code owners January 24, 2025 10:39
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@t-vi t-vi enabled auto-merge (squash) January 24, 2025 12:49
Copy link
Collaborator

@lantiga lantiga left a comment

Choose a reason for hiding this comment

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

Great find, thank you

@t-vi t-vi merged commit 52ee541 into main Jan 24, 2025
49 checks passed
@t-vi t-vi deleted the tom/memory-leak-saved-tensors branch January 24, 2025 13:35
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 from connect_to_autograd
3 participants