(self, config: BERTConfig)
| 373 | class BertForQuestionAnswering(BertBase): |
| 374 | |
| 375 | def __init__(self, config: BERTConfig): |
| 376 | super().__init__(config) |
| 377 | self.bert = BertModel(config) |
| 378 | self.num_labels = config.num_labels |
| 379 | self.qa_outputs = Linear(config.hidden_size, |
| 380 | config.num_labels, |
| 381 | dtype=config.dtype) |
| 382 | |
| 383 | def forward(self, |
| 384 | input_ids=None, |