(self, config)
| 1056 | ) |
| 1057 | class 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 |
nothing calls this directly
no test coverage detected