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 FullyBayesianPosterior #1951

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary: The existance of _quantile method that references the object seems to cause a weird memory leak when model.posterior is called in a loop. Making _quantile a standalone function fixes this. We lose the caching functionality but I think that's a fair trade.

Differential Revision: D47821429

Summary: The existance of `_quantile` method that references the object seems to cause a weird memory leak when `model.posterior` is called in a loop. Making `_quantile` a standalone function fixes this. We lose the caching functionality but I think that's a fair trade.

Differential Revision: D47821429

fbshipit-source-id: 863c084363b4b5e745f238a8145971bf5ece692c
@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Jul 27, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47821429

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #1951 (21b1a50) into main (cca54db) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 21b1a50 differs from pull request most recent head 2ff88c1. Consider uploading reports for the commit 2ff88c1 to get more accurate results

@@           Coverage Diff           @@
##             main    #1951   +/-   ##
=======================================
  Coverage   99.94%   99.94%           
=======================================
  Files         177      177           
  Lines       15693    15691    -2     
=======================================
- Hits        15685    15683    -2     
  Misses          8        8           
Files Changed Coverage Δ
botorch/posteriors/fully_bayesian.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 793c3bd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants