helpers#

class flax.nnx.Dict(*args, **kwargs)[source]#
class flax.nnx.List(*args, **kwargs)[source]#
class flax.nnx.Sequential(*args, **kwargs)[source]#
class flax.nnx.TrainState(graphdef: 'GraphDef[M]', params: 'State', opt_state: 'optax.OptState', step: 'jax.Array', tx: 'optax.GradientTransformation')[source]#
replace(**updates)#

“Returns a new object replacing the specified fields with new values.