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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user