quantax.nn.apply_lecun_normal#
- quantax.nn.apply_lecun_normal(key: Key, net: Linear | Conv) Linear | Conv #
Apply the Lecun normal initializer to the weights of the layer. The bias is initialized to 0.
- Parameters:
key – The random key used in JAX for initializing parameters.
net – The net to apply the initializer.
- Returns:
The net with properly initialized parameters.
Note
This function can only be applied to
Linear
orConv
layers in Equinox.Note
The input
net
is not modified.