Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
7f9193ef
Unverified
Commit
7f9193ef
authored
Apr 30, 2020
by
Jordan
Committed by
GitHub
Apr 30, 2020
Browse files
Fixed Style Inconsistency (#3976)
parent
64070cbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_bert.py
src/transformers/modeling_bert.py
+1
-1
No files found.
src/transformers/modeling_bert.py
View file @
7f9193ef
...
@@ -1079,7 +1079,7 @@ class BertForSequenceClassification(BertPreTrainedModel):
...
@@ -1079,7 +1079,7 @@ class BertForSequenceClassification(BertPreTrainedModel):
self
.
bert
=
BertModel
(
config
)
self
.
bert
=
BertModel
(
config
)
self
.
dropout
=
nn
.
Dropout
(
config
.
hidden_dropout_prob
)
self
.
dropout
=
nn
.
Dropout
(
config
.
hidden_dropout_prob
)
self
.
classifier
=
nn
.
Linear
(
config
.
hidden_size
,
self
.
config
.
num_labels
)
self
.
classifier
=
nn
.
Linear
(
config
.
hidden_size
,
config
.
num_labels
)
self
.
init_weights
()
self
.
init_weights
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment