Skip to content

Fix a memory leak in the plotting - #87

Merged
allevitan merged 1 commit into
masterfrom
fix_plotting_memory_leak
Jul 23, 2026
Merged

Fix a memory leak in the plotting#87
allevitan merged 1 commit into
masterfrom
fix_plotting_memory_leak

Conversation

@allevitan

Copy link
Copy Markdown
Collaborator

This memory leak had to do with callbacks which closed over stale tensors that would never be released, and only appeared in panel plot mode. The fix is to just check explicitly for new callbacks after each iteration and release them within the model.inspect() code.

@allevitan allevitan left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Gave it a look after sleeping on it, still looks solid

@allevitan
allevitan merged commit 3e63ca2 into master Jul 23, 2026
9 checks passed
@allevitan
allevitan deleted the fix_plotting_memory_leak branch July 23, 2026 07:37
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.

1 participant