LayerNormΒΆ
Applies Layer Normalization.
Abstract Signature:
LayerNorm(input: Tensor, normalized_shape: List[int], weight: Tensor, bias: Tensor, eps: float = 1e-05)
JAX (Core)
API:
βStrategy: Custom / Partial
NumPy
API:
βStrategy: Custom / Partial
Keras
API:
keras.layers.LayerNormalizationStrategy: Macro 'keras.layers.LayerNormalization(epsilon={eps})({input})'
TensorFlow
API:
tf.keras.layers.LayerNormalizationStrategy: Macro 'tf.keras.layers.LayerNormalization(epsilon={eps})({input})'
Apple MLX
API:
mlx.nn.layers.normalization.LayerNormStrategy: Macro 'mx.fast.layer_norm({input}, {weight}, {bias}, {eps})'
Flax NNX
API:
nnx.nn.normalization.LayerNormStrategy: Macro 'nnx.LayerNorm(num_features={normalized_shape}, epsilon={eps}).call({input})'
PaxML / Praxis
API:
βStrategy: Custom / Partial