class_docstr: Complete Bert Model (Transformer encoder).
class_docstr_tok: ["Complete","Bert","Model","(","Transformer","encoder",")","."]
code: def __init__(self, config):
      super().__init__()
      self.output_attentions = False
      self.output_hidden_states = False
      self.layer = nn.ModuleList(
          [BertLayer(config) for _ in range(config.num_hidden_layers)]
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import logging
  import math
  import torch
  from torch import nn
  from towhee.models.layers.activations import swish, gelu
label_desc: Use image node_id 1 to create a new BertEncoder object from inherited base classes: nn with example: obj = BertEncoder(config)