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

fix additional bugs for parallel scripting

This commit is contained in:
Jin Yong Yoo
2020-05-22 13:12:14 -04:00
parent 9c06550d07
commit 8c24c71bb2
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import os
import pickle
import time
import datetime
import copy
from textattack.shared import utils
from textattack.attack_results import SuccessfulAttackResult, FailedAttackResult, SkippedAttackResult
@@ -16,7 +17,7 @@ class Checkpoint:
chkpt_time (float): epoch time representing when checkpoint was made
"""
def __init__(self, args, log_manager, chkpt_time=None):
self.args = args
self.args = copy.deepcopy(args)
self.log_manager = log_manager
if chkpt_time:
self.time = chkpt_time