Skip to content

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
Collaborator

@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