mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
fix recovery log
This commit is contained in:
@@ -49,12 +49,12 @@ def run(args):
|
||||
resume_checkpoint = parse_checkpoint_from_args(args)
|
||||
args = merge_checkpoint_args(resume_checkpoint.args, args)
|
||||
num_examples_offset = resume_checkpoint.dataset_offset
|
||||
num_examples = resume_checkpoint.num_remaining_attacks
|
||||
logger.info('Recovered from previously saved checkpoint at {}'.format(resume_checkpoint.datetime))
|
||||
print(resume_checkpoint, '\n')
|
||||
else:
|
||||
num_examples_offset = args.num_examples_offset
|
||||
num_examples = args.num_examples
|
||||
|
||||
num_examples = args.num_examples
|
||||
|
||||
# This makes `args` a namespace that's sharable between processes.
|
||||
# We could do the same thing with the model, but it's actually faster
|
||||
|
||||
Reference in New Issue
Block a user