class_docstr: The :class:`LayerNorm` class is for layer normalization, see `tf.contrib.layers.layer_norm <https://www.tensorflow.org/api_docs/python/tf/contrib/layers/layer_norm>`__.
  
  Parameters
  ----------
  prev_layer : :class:`Layer`
      The previous layer.
  act : activation function
      The activation function of this layer.
  others : _
      `tf.contrib.layers.layer_norm <https://www.tensorflow.org/api_docs/python/tf/contrib/layers/layer_norm>`__.
class_docstr_tok: ["The",":","class",":","`","LayerNorm","`","class","is","for","layer","normalization",",","see","`","tf.contrib.layers.layer_norm","<","https",":","\/\/www.tensorflow.org\/api_docs\/python\/tf\/contrib\/layers\/layer_norm",">","`","__",".","Parameters","--","--","--","--","--","prev_layer",":",":","class",":","`","Layer","`","The","previous","layer",".","act",":","activation","function","The","activation","function","of","this","layer",".","others",":","_","`","tf.contrib.layers.layer_norm","<","https",":","\/\/www.tensorflow.org\/api_docs\/python\/tf\/contrib\/layers\/layer_norm",">","`","__","."]
code: def __init__(
      self,  # prev_layer,
      center=True,
      scale=True,
      act=None,
      # reuse=None,
      # variables_collections=None,
      # outputs_collections=None,
      # trainable=True,
      epsilon=1e-12,
      begin_norm_axis=1,
      begin_params_axis=-1,
      beta_init=tl.initializers.zeros(),
      gamma_init=tl.initializers.ones(),
      data_format="channels_last",
      name=None,
  ):
      # super(LayerNorm, self).__init__(prev_layer=prev_layer, act=act, name=name)
      super(LayerNorm, self).__init__(name, act=act)
      self.center = center
      self.scale = scale
      self.epsilon = epsilon
      self.begin_norm_axis = begin_norm_axis
      self.begin_params_axis = begin_params_axis
      self.beta_init = beta_init
      self.gamma_init = gamma_init
      self.data_format = data_format
  
      logging.info(
          "LayerNorm %s: act: %s"
          % (
              self.name,
              self.act.__name__
              if self.act is not None
              else "No Activation",
          )
      )
  
imports: import tensorflow
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.training import moving_averages
  import tensorlayer
  from tensorlayer import logging
  from tensorlayer.layers.core import Layer
label_desc: Use image node_id 1 to create a new LayerNorm object from inherited base classes: Layer with example: obj = LayerNorm(center, scale, act, epsilon, begin_norm_axis, begin_params_axis, beta_init, gamma_init, data_format, name)