MCPcopy Create free account
hub / github.com/THUDM/GLM / __init__

Method __init__

model/modeling_bert.py:653–655  ·  view source on GitHub ↗
(self, config, bert_model_embedding_weights)

Source from the content-addressed store, hash-verified

651
652class BertOnlyMLMHead(nn.Module):
653 def __init__(self, config, bert_model_embedding_weights):
654 super(BertOnlyMLMHead, self).__init__()
655 self.predictions = BertLMPredictionHead(config, bert_model_embedding_weights)
656
657 def forward(self, sequence_output):
658 prediction_scores = self.predictions(sequence_output)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected