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 models not rendering after application of the equalize effect handler #3387

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

BenZickel
Copy link
Contributor

@BenZickel BenZickel commented Jul 23, 2024

Problem

After using the pyro.poutine.equalize effect handler model rendering with pyro.render_model does not work due to no base_dist attribute in Delta sampled sites.

Solution

Add masking so that the sampling function has the base_dist attribute as expected by pyro.render_model for Delta sampled sites.

@BenZickel
Copy link
Contributor Author

Also added a fix for this lint failure due to a mypy update.

@fritzo fritzo merged commit e3091e3 into pyro-ppl:dev Jul 23, 2024
9 checks passed
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.

2 participants