LayerNormalization
Description
Performs normalization on a specified layer.

Input
- x: input tensor of type float16.
- scale: input tensor of type float16, specifying the scale factor.
- B (optional): input tensor of type float16, specifying the offset.
Attribute
- axis: int, indicating the first dimension to be normalized. The default value is -1.
- epsilon: float. The default value is 1e-05. A small value is added to var to avoid division by 0.
- stash_type: int. The default value is 1, specifying the type of mean and InvStdDev.
Output
- y: tensor after normalization. The data type is float16 or float.
- mean: mean value. This parameter is optional.
- InvStdDev: reciprocal of the standard deviation. This parameter is optional.
Constraints
None.
ONNX Opset Support
Opset v17/v18
Parent topic: Supported ONNX Operators