Skip to content

Add forward of attributes to base model for BayesianModels#73

Merged
francois-rozet merged 2 commits into
probabilists:masterfrom
valsdav:fix-bayesian
Dec 1, 2025
Merged

Add forward of attributes to base model for BayesianModels#73
francois-rozet merged 2 commits into
probabilists:masterfrom
valsdav:fix-bayesian

Conversation

@valsdav
Copy link
Copy Markdown
Contributor

@valsdav valsdav commented Nov 13, 2025

This little fix allows to access the attributes of the base flow when using the BayesianModel pattern.

This is very handy when working with frameworks manipulating both normal flows and BayesianModels.

@francois-rozet
Copy link
Copy Markdown
Member

francois-rozet commented Nov 13, 2025

Hi @valsdav, thank you for the PR. Could you provide an example for when this feature would be useful?

If base is a Flow, the only two attributes are transform and base if I am not mistaken. I am not sure if it is safe to let users access these "implicitely". Is there something I am missing?

In addition, log_prob, sample, rsample, ... are not available for a Flow object, so I don't think they would need to be "excluded".

@francois-rozet francois-rozet merged commit bb2dddd into probabilists:master Dec 1, 2025
7 checks passed
@francois-rozet francois-rozet changed the title fix: added forward of attributes to base model for BayesianModels Add forward of attributes to base model for BayesianModels Mar 7, 2026
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