1
0
mirror of https://github.com/QData/TextAttack.git synced 2021-10-13 00:05:06 +03:00

made requested changes

This commit is contained in:
Jin Yong Yoo
2020-05-24 11:21:05 -04:00
parent a793bd8aa3
commit 11f295b908
2 changed files with 1 additions and 6 deletions

View File

@@ -37,8 +37,6 @@ def attack_from_queue(args, in_queue, out_queue):
results_gen = attack.attack_dataset([(output, text)], num_examples=1)
result = next(results_gen)
out_queue.put(result)
del output
del text
except Exception as e:
out_queue.put(e)
exit()
@@ -125,9 +123,6 @@ def run(args):
attack_log_manager.flush()
checkpoint = textattack.shared.Checkpoint(args, attack_log_manager)
checkpoint.save()
else:
if num_results > 0 and num_results % 50 == 0:
attack_log_manager.flush()
pbar.close()
print()