MCPcopy Create free account
hub / github.com/Hzfinfdu/Diffusion-BERT / __init__

Method __init__

models/modeling_bert.py:1058–1065  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

1056)
1057class BertForPreTraining(BertPreTrainedModel):
1058 def __init__(self, config):
1059 super().__init__(config)
1060
1061 self.bert = BertModel(config)
1062 self.cls = BertPreTrainingHeads(config)
1063
1064 # Initialize weights and apply final processing
1065 self.post_init()
1066
1067 def get_output_embeddings(self):
1068 return self.cls.predictions.decoder

Callers

nothing calls this directly

Calls 3

BertModelClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected