"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "99f73bcc71e73d747124c476f9028db752fb05f3"
Commit 357db709 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Fix E712 flake8 warning (x1).

parent f9c5317d
...@@ -334,7 +334,7 @@ def load_and_cache_examples(args, task, tokenizer, evaluate=False, test=False): ...@@ -334,7 +334,7 @@ def load_and_cache_examples(args, task, tokenizer, evaluate=False, test=False):
cached_mode = "test" cached_mode = "test"
else: else:
cached_mode = "train" cached_mode = "train"
assert (evaluate == True and test == True) == False assert not (evaluate and test)
cached_features_file = os.path.join( cached_features_file = os.path.join(
args.data_dir, args.data_dir,
"cached_{}_{}_{}_{}".format( "cached_{}_{}_{}_{}".format(
......
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