"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "db136341836d6d9a4d599e2935253e0ae04cc1f1"
Unverified Commit 059bb258 authored by Yusuke Mori's avatar Yusuke Mori Committed by GitHub
Browse files

Fix a bug in run_glue.py (#9812) (#9815)

parent eba418ac
...@@ -317,7 +317,7 @@ def main(): ...@@ -317,7 +317,7 @@ def main():
if ( if (
model.config.label2id != PretrainedConfig(num_labels=num_labels).label2id model.config.label2id != PretrainedConfig(num_labels=num_labels).label2id
and data_args.task_name is not None 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. # 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()} label_name_to_id = {k.lower(): v for k, v in model.config.label2id.items()}
......
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