mlx.optimizers.OptimizerState#
- class mlx.optimizers.OptimizerState#
 The optimizer state implements a recursively defined
collections.defaultdict, namely a missing key in an optimizer state is anOptimizerState.Note
OptimizerState.get()in contrast to a normal dictionary also sets the key to thedefaultvalue if thekeywas not present in the dictionary.Methods
get(key, default)If
keydoesn't exist set its value todefaultand then return it.