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

Use multipledispatch for kl_registry #1252

Merged
merged 6 commits into from
Dec 13, 2021
Merged

Conversation

fehiepsi
Copy link
Member

Resolves #762

My motivation is to detect ambiguity in (Delta, ExpandedDistribution) early (which happened in #1245). But it turns out we can simplify much code here. Thanks for suggesting, @fritzo!

fritzo
fritzo previously approved these changes Dec 11, 2021
Copy link
Member

@fritzo fritzo left a comment

Choose a reason for hiding this comment

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

Great simplification! The historical reason we didn't use multipledispatch was that PyTorch wanted to avoid adding dependencies; we ended up building minimal functionality from scratch.

@fritzo fritzo merged commit 545db3f into pyro-ppl:master Dec 13, 2021
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.

Use multipledispatch for kl_divergence
2 participants