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
059bb258
Unverified
Commit
059bb258
authored
Jan 27, 2021
by
Yusuke Mori
Committed by
GitHub
Jan 26, 2021
Browse files
Fix a bug in run_glue.py (#9812) (#9815)
parent
eba418ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/text-classification/run_glue.py
examples/text-classification/run_glue.py
+1
-1
No files found.
examples/text-classification/run_glue.py
View file @
059bb258
...
...
@@ -317,7 +317,7 @@ def main():
if
(
model
.
config
.
label2id
!=
PretrainedConfig
(
num_labels
=
num_labels
).
label2id
and
data_args
.
task_name
is
not
None
and
is_regression
and
not
is_regression
):
# Some have all caps in their config, some don't.
label_name_to_id
=
{
k
.
lower
():
v
for
k
,
v
in
model
.
config
.
label2id
.
items
()}
...
...
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