Flax Linen: Create a parameter without explicitly naming it #5082
Unanswered
carlosgmartin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a parameter in Flax Linen without explicitly naming it. The usual way to do this is something like
However, I can't set a name, because this code runs multiple times, causing conflict:
I'd like to create an anonymous/nameless parameter, whose name is assigned automatically behind the scenes, like it is for every other module (
nn.Dense, etc.).Is there a way to do this? If not, would you consider adding this functionality?
I see no reason to break symmetry with the way names are automatically assigned to any other created module.
Beta Was this translation helpful? Give feedback.
All reactions