MCPcopy Create free account
hub / github.com/SooLab/CGFormer / __init__

Method __init__

bert/modeling_bert.py:511–513  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

509
510class BertOnlyMLMHead(nn.Module):
511 def __init__(self, config):
512 super().__init__()
513 self.predictions = BertLMPredictionHead(config)
514
515 def forward(self, sequence_output):
516 prediction_scores = self.predictions(sequence_output)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected