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

Method __init__

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

Source from the content-addressed store, hash-verified

1115)
1116class BertForNextSentencePrediction(BertPreTrainedModel):
1117 def __init__(self, config):
1118 super().__init__(config)
1119
1120 self.bert = BertModel(config)
1121 self.cls = BertOnlyNSPHead(config)
1122
1123 self.init_weights()
1124
1125 @add_start_docstrings_to_callable(BERT_INPUTS_DOCSTRING.format("(batch_size, sequence_length)"))
1126 def forward(

Callers

nothing calls this directly

Calls 4

BertModelClass · 0.85
BertOnlyNSPHeadClass · 0.85
__init__Method · 0.45
init_weightsMethod · 0.45

Tested by

no test coverage detected