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 model rendering #2983

Merged
merged 2 commits into from
Dec 9, 2021
Merged

Fix model rendering #2983

merged 2 commits into from
Dec 9, 2021

Conversation

fritzo
Copy link
Member

@fritzo fritzo commented Dec 8, 2021

Resolves #2980

This ports NumPyro's _resolve_plate_samples(), which was lost in translation during #2962 .

Tested

  • added example in a the model rendering tutorial

@fritzo fritzo requested a review from fehiepsi December 8, 2021 19:46
@fritzo fritzo self-assigned this Dec 8, 2021
fehiepsi
fehiepsi previously approved these changes Dec 8, 2021
Copy link
Member

@fehiepsi fehiepsi left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -559,12 +559,83 @@
]
},
{
"cell_type": "markdown",
"cell_type": "code",
Copy link
Member

Choose a reason for hiding this comment

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

typo: the likelihood should be dist.Normal(..., 1) (change 0 to 1).

@fehiepsi fehiepsi merged commit 748c23b into dev Dec 9, 2021
@fritzo fritzo deleted the fix-render-model branch February 24, 2022 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pyro.render_model() fails to draw overlapping non-nested plates
2 participants