Skip to content

Fixed params? How could make this more elegant? #1388

Answered by jheek
marcosrdac asked this question in Q&A
Discussion options

You must be logged in to vote

Consider using a variable that is not a param for phi (https://flax.readthedocs.io/en/latest/flax.linen.html#flax.linen.Module.variable). You can define your own collection name for this filter like

phi = self.variable("filter", "phi", ...)
phi.value = ...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marcosrdac
Comment options

Answer selected by marcosrdac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants