mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
revert BertForMultipleChoice linear classifier
This commit is contained in:
parent
38ba7b439b
commit
80f995a141
@ -1034,7 +1034,7 @@ class BertForMultipleChoice(BertPreTrainedModel):
|
||||
self.num_choices = num_choices
|
||||
self.bert = BertModel(config)
|
||||
self.dropout = nn.Dropout(config.hidden_dropout_prob)
|
||||
self.classifier = nn.Linear(config.hidden_size, num_choices)
|
||||
self.classifier = nn.Linear(config.hidden_size, 1)
|
||||
self.apply(self.init_bert_weights)
|
||||
|
||||
def forward(self, input_ids, token_type_ids=None, attention_mask=None, labels=None):
|
||||
|
Loading…
Reference in New Issue
Block a user