def layer_norm(input_tensor, name=None):
  """Run layer normalization on the last dimension of the tensor."""
  return slim_layers.layer_norm(
      inputs=input_tensor, begin_norm_axis=-1, begin_params_axis=-1, scope=name)
Run layer normalization on the last dimension of the tensor.
language/canine/bert_modeling.py