Skip to content

Fix #445 #454

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

Merged
merged 1 commit into from
Mar 3, 2022
Merged

Fix #445 #454

merged 1 commit into from
Mar 3, 2022

Conversation

alex-lew
Copy link
Contributor

@alex-lew alex-lew commented Mar 3, 2022

This fixes an issue that @fzaiser found and diagnosed with the logpdf_grad implementation of HomogeneousMixture.

The bug is in a call to reshape which uses length(dist.dims) (the number of arguments to each component of the mixture distribution) rather than K = length(weights), the number of mixture components.

@alex-lew alex-lew merged commit 86f27bc into master Mar 3, 2022
@ztangent ztangent deleted the 20220303-alexlew-homogeneous-mixture-grad branch May 31, 2022 13:57
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.

1 participant