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

Method __init__

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

Source from the content-addressed store, hash-verified

777)
778class BertForPreTraining(BertPreTrainedModel):
779 def __init__(self, config):
780 super().__init__(config)
781
782 self.bert = BertModel(config)
783 self.cls = BertPreTrainingHeads(config)
784
785 self.init_weights()
786
787 def get_output_embeddings(self):
788 return self.cls.predictions.decoder

Callers

nothing calls this directly

Calls 4

BertModelClass · 0.85
__init__Method · 0.45
init_weightsMethod · 0.45

Tested by

no test coverage detected