"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "4aa630eeabf588014c0fb0d09f7bb0fa7c2d71e5"
Unverified Commit 7d2feb3a authored by weierstrass_walker's avatar weierstrass_walker Committed by GitHub
Browse files

Update modeling_bert.py (#13129)

parent a13c8145
...@@ -1585,7 +1585,7 @@ class BertForMultipleChoice(BertPreTrainedModel): ...@@ -1585,7 +1585,7 @@ class BertForMultipleChoice(BertPreTrainedModel):
super().__init__(config) super().__init__(config)
self.bert = BertModel(config) self.bert = BertModel(config)
self.dropout = nn.Dropout(config.hidden_dropout_prob) self.dropout = nn.Dropout(config.classifier_dropout_prob)
self.classifier = nn.Linear(config.hidden_size, 1) self.classifier = nn.Linear(config.hidden_size, 1)
self.init_weights() self.init_weights()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment