class_docstr: Implements layer normalization as proposed in [BKH16]_.
class_docstr_tok: ["Implements","layer","normalization","as","proposed","in","[","BKH16","]","_","."]
code: def __init__(
      self,
      scale_init: str = "ones",
      shift_init: str = "zeros",
      eps: float = 1e-06,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
  
      self.scale_init = scale_init
      self.shift_init = shift_init
  
      with self.name_scope():
          self.lnorm = mx.gluon.nn.LayerNorm(
              axis=-1,
              gamma_initializer=self.scale_init,
              beta_initializer=self.shift_init,
              epsilon=eps,
          )
  
imports: from typing import Dict, Optional, Tuple
  import mxnet
  from mxnet.gluon import HybridBlock
  from gluonts.mx import Tensor
label_desc: Use image node_id 1 to create a new LayerNormalization object from inherited base classes: HybridBlock with example: obj = LayerNormalization(scale_init, shift_init, eps)