Layer Normalization#
A primitive to perform layer normalization. Normalization is performed within the last logical dimension of data tensor.
Both forward and backward propagation primitives support in-place operation; that is, src and dst can refer to the same memory for forward propagation, and diff_dst and diff_src can refer to the same memory for backward propagation.
The layer normalization primitives computations can be controlled by specifying different dnnl::normalization_flags values. For example, layer normalization forward propagation can be configured to either compute the mean and variance or take them as arguments. It can either perform scaling and shifting using gamma and beta parameters or not.
See also:
Layer Normalization in developer guide
// structs struct dnnl::layer_normalization_backward; struct dnnl::layer_normalization_forward;