(self, config)
| 795 | ``` |
| 796 | """ |
| 797 | def __init__(self, config): |
| 798 | super(BertModel, self).__init__(config) |
| 799 | self.embeddings = BertEmbeddings(config) |
| 800 | self.encoder = BertEncoder(config) |
| 801 | self.pooler = BertPooler(config) |
| 802 | self.apply(self.init_bert_weights) |
| 803 | |
| 804 | def forward(self, input_ids, token_type_ids=None, attention_mask=None, output_all_encoded_layers=True, checkpoint_activations=False): |
| 805 | if attention_mask is None: |
nothing calls this directly
no test coverage detected