(self, config)
| 993 | """ |
| 994 | |
| 995 | def __init__(self, config): |
| 996 | super(BertForPreTraining, self).__init__(config) |
| 997 | self.bert = BertModel(config) |
| 998 | self.cls = BertPreTrainingHeads(config, self.bert.embeddings.word_embeddings.weight) |
| 999 | self.apply(self.init_bert_weights) |
| 1000 | |
| 1001 | def forward(self, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, |
| 1002 | next_sentence_label=None, checkpoint_activations=False): |
nothing calls this directly
no test coverage detected