il.unflatten_dict(mask)
>>> params = model.to_fp16(params, mask)

to_fp32

<
source
>
(
params: typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]
mask: typing.Any = None

)


Parameters 

params (Union[Dict, FrozenDict]) —
A PyTree of model parameters.


mask (Union[Dict, FrozenDict]) —
A PyTree with same structure as the params tree. The leaves should be booleans, True for params
you want to cast, and should be False for those you wa