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 handling of re-used priors #2269

Merged
merged 2 commits into from
Mar 6, 2023
Merged

Fix handling of re-used priors #2269

merged 2 commits into from
Mar 6, 2023

Conversation

Balandat
Copy link
Collaborator

@Balandat Balandat commented Feb 5, 2023

Previously, we would use a memo set in _extract_named_priors that would cause issues / wrong results if the same prior instance was used on different modules. I don't actually understand the reason for having this memo, and removing it fies this issue.

Separately, we should probably audit similar behavior in _extract_named_constraints and _extract_named_added_loss_terms.

Addresses #2263

Previously, we would use a `memo` set in `_extract_named_priors` that would cause issues / wrong results if the same prior instance was used on different modules. I don't actually understand the reason for having this `memo`, and removing it fies this issue.

Separately, we should probably audit similar behavior in `_extract_named_constraints` and `_extract_named_added_loss_terms`.

Addresses #2263
@Balandat Balandat requested a review from gpleiss February 5, 2023 17:27
@gpleiss gpleiss merged commit 7351799 into master Mar 6, 2023
@gpleiss gpleiss deleted the fix_reused_priors branch March 6, 2023 18:29
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.

None yet

2 participants