MCPcopy Index your code
hub / github.com/THUDM/GLM / __init__

Method __init__

model/modeling_bert.py:897–902  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

895 """
896
897 def __init__(self, config):
898 super(BertModel, self).__init__(config)
899 self.embeddings = BertEmbeddings(config)
900 self.encoder = BertEncoder(config)
901 self.pooler = BertPooler(config)
902 self.apply(self.init_bert_weights)
903
904 def forward(self, input_ids, token_type_ids=None, attention_mask=None, output_all_encoded_layers=True,
905 checkpoint_activations=False):

Callers

nothing calls this directly

Calls 5

BertEmbeddingsClass · 0.85
BertEncoderClass · 0.85
BertPoolerClass · 0.85
applyMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected