(self, config: BertConfig)
Constructor for BertModel.

        Args:
            config: `BertConfig` instance.
Constructor for BertModel.
Constructor for BertModel .
def __init__(self, config: BertConfig):
        """Constructor for BertModel.

        Args:
            config: `BertConfig` instance.
        """
        super(BertModel, self).__init__()
        self.embeddings = BERTEmbeddings(config)
        self.encoder = BERTEncoder(config)
        self.pooler = BERTPooler(config)
def __init__ ( self , config : BertConfig ) : super ( BertModel , self ) . __init__ ( ) self . embeddings = BERTEmbeddings ( config ) self . encoder = BERTEncoder ( config ) self . pooler = BERTPooler ( config )