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

Method __init__

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

Source from the content-addressed store, hash-verified

529
530class BertPreTrainingHeads(nn.Module):
531 def __init__(self, config):
532 super().__init__()
533 self.predictions = BertLMPredictionHead(config)
534 self.seq_relationship = nn.Linear(config.hidden_size, 2)
535
536 def forward(self, sequence_output, pooled_output):
537 prediction_scores = self.predictions(sequence_output)

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected