"vscode:/vscode.git/clone" did not exist on "814b9550d72f918d9eaea94468fa18a15ab710b3"
Unverified Commit 4b082bd4 authored by Rohit Kumar Singh's avatar Rohit Kumar Singh Committed by GitHub
Browse files

Merge pull request #1 from SKRohit/SKRohit-patch-1

changes in return statement of evaluate function
parents 84d346b6 e5df3639
......@@ -247,7 +247,6 @@ def evaluate(args, model, tokenizer, prefix=""):
# Loop to handle MNLI double evaluation (matched, mis-matched)
eval_output_dir = args.output_dir
results = {}
eval_dataset = load_and_cache_examples(args, tokenizer, evaluate=True)
if not os.path.exists(eval_output_dir) and args.local_rank in [-1, 0]:
......@@ -289,7 +288,7 @@ def evaluate(args, model, tokenizer, prefix=""):
logger.info(" %s = %s", key, str(result[key]))
writer.write("%s = %s\n" % (key, str(result[key])))
return results
return result
def main():
......
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