Applies Layer Normalization for last certain number of dimensions.
nnf_layer_norm(
input,
normalized_shape,
weight = NULL,
bias = NULL,
eps = 1e-05
)
the input tensor
input shape from an expected input of size. If a single integer is used, it is treated as a singleton list, and this module will normalize over the last dimension which is expected to be of that specific size.
the weight tensor
the bias tensor
a value added to the denominator for numerical stability. Default: 1e-5