def __init__(self, tensor, time, time_cost, task_type: TaskType, front_boundary=None, back_boundary=None):
    self.tensor = tensor
    self.time_cost = time_cost
    self.data_type = np.float64
    self.task_type = task_type
    self.swap_task_id = None
    assert (not ((front_boundary is None) and (back_boundary is None)))
    self.front_boundary = front_boundary
    self.back_boundary = back_boundary
    self.time = time
    self.execute_time = None
    self.execute_ref = None
    self.start_time_ = None
    self.end_time_ = None
def __init__(self, tensor, time, time_cost, task_type: TaskType, front_boundary=None, back_boundary=None):
    self.tensor = tensor
    self.time_cost = time_cost
    self.data_type = np.float64
    self.task_type = task_type
    self.swap_task_id = None
    assert (not ((front_boundary is None) and (back_boundary is None)))
    self.front_boundary = front_boundary
    self.back_boundary = back_boundary
    self.time = time
    self.execute_time = None
    self.execute_ref = None
    self.start_time_ = None
    self.end_time_ = None