(self, config)
| 1294 | ) |
| 1295 | class BertForMultipleChoice(BertPreTrainedModel): |
| 1296 | def __init__(self, config): |
| 1297 | super().__init__(config) |
| 1298 | |
| 1299 | self.bert = BertModel(config) |
| 1300 | self.dropout = nn.Dropout(config.hidden_dropout_prob) |
| 1301 | self.classifier = nn.Linear(config.hidden_size, 1) |
| 1302 | |
| 1303 | self.init_weights() |
| 1304 | |
| 1305 | @add_start_docstrings_to_callable(BERT_INPUTS_DOCSTRING.format("(batch_size, num_choices, sequence_length)")) |
| 1306 | @add_code_sample_docstrings(tokenizer_class=_TOKENIZER_FOR_DOC, checkpoint="bert-base-uncased") |
nothing calls this directly
no test coverage detected