def initialize(cls, rng, in_spec, initial_state): return nn.LayerParams(state=initial_state)
def initialize(cls, rng, in_spec): return nn.LayerParams()
def initialize(cls, rng, in_spec, weight): weight = jnp.array(weight) return nn.LayerParams(params=weight)