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

Class BertOnlyMLMHead

bert/modeling_bert.py:510–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508
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)
517 return prediction_scores
518
519
520class BertOnlyNSPHead(nn.Module):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected