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 for some type instabilities #354

Merged
merged 2 commits into from
Nov 30, 2024
Merged

Conversation

torfjelde
Copy link
Member

Sometimes we encounter type instabilities in the current impl of logpdf_with_trans for "batched" with MultivariateDistribution. This is caused by broadcasting over a tuple of bijector + an eachcol.

See TuringLang/DynamicPPL.jl#728 (comment) for an example.

This PR replaces that broadcast with a much more stable map + Fix1. This at least fixes the issue encountered in the referenced PR to DPPL.jl, and just seems better overall.

@torfjelde torfjelde merged commit 55501ae into master Nov 30, 2024
33 checks passed
@torfjelde torfjelde deleted the torfjelde/logabsdetjac-dist-fix branch November 30, 2024 14:17
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