-
What's the story behind this syntax? _, init_params = init_variables.pop('params') |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Documentation on RTD: https://flax.readthedocs.io/en/latest/flax.core.frozen_dict.html
|
Beta Was this translation helpful? Give feedback.
Documentation on RTD: https://flax.readthedocs.io/en/latest/flax.core.frozen_dict.html
FrozenDict
is our implementation of aMapping
that is immutable and suitable for use with parameters and other state variables. Additionally to function to convert betweendict
(and otherMapping
) toFrozenDict
via.freeze()
and.unfreeze()
, theFrozenDict
class also implements a.pop()
method that is similar todict.pop()
but with the difference that the updatedFrozenDict
is returned before the value that is popped (note that the defaultdict.pop()
does this update in-place).