Skip to content

Fixed parameter updates for sequence layers in nn modules #2024

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 3 commits into from
Apr 27, 2025

Conversation

kylejcaron
Copy link
Contributor

Safely converts integers to strings when creating flatten_name (the layer name of nn modules) in _update_params() - this was a problem because sequences (such as a list for hidden layers in an MLP) would use integers in their naming schemes, causing _update_params() to break

Fixes #2022

Copy link
Contributor

@juanitorduz juanitorduz left a comment

Choose a reason for hiding this comment

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

Morally approve as I do not have the true rights for a valid review to merge 😆

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.

Thanks @kylejcaron !

@fehiepsi fehiepsi merged commit 448ea3f into pyro-ppl:master Apr 27, 2025
10 checks passed
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.

random_nnx_module (and potentially random_eqx_module) cant handle models with list layers
3 participants