class_docstr: Transformer Encoder is stacked with
  several TransformerencLayers.
class_docstr_tok: ["Transformer","Encoder","is","stacked","with","several","TransformerencLayers","."]
code: def __init__(self, config, **kwargs):
      super().__init__(**kwargs)
      model_config = config["model"]["net"]["structure"]
      self.num_layers = model_config.get("num_layers")
      self.transformer_encs = [
          TransformerEncoderLayer(config)
          for _ in range(self.num_layers)
      ]
  
imports: import math
  from absl import logging
  import numpy
  import delta.compat
  from tensorflow.python.util import nest
  from delta.layers.base_layer import Layer
  from delta.layers import utils_tf
  import delta.layers
label_desc: Use image node_id 1 to create a new TransformerEncoder object from inherited base classes: Layer with example: obj = TransformerEncoder(config)