def __init__(self, tensor, time, run_time, access_type, operation_id, operation_name):
    self.tensor = tensor
    self.access_id = None
    self.start_time = None
    self.end_time = None
    self.time = time
    self.run_time = run_time
    self.access_type = access_type
    if (self.access_type == AccessType.output):
        self.end_time = self.time
        self.start_time = (self.time - self.run_time)
    else:
        self.start_time = self.time
        self.end_time = (self.time + self.run_time)
    self.release_flag = False
    self.operation_id = operation_id
    self.operation_name = operation_name
    self.release_for_recomputation = []
def __init__(self, tensor, time, run_time, access_type, operation_id, operation_name):
    self.tensor = tensor
    self.access_id = None
    self.start_time = None
    self.end_time = None
    self.time = time
    self.run_time = run_time
    self.access_type = access_type
    if (self.access_type == AccessType.output):
        self.end_time = self.time
        self.start_time = (self.time - self.run_time)
    else:
        self.start_time = self.time
        self.end_time = (self.time + self.run_time)
    self.release_flag = False
    self.operation_id = operation_id
    self.operation_name = operation_name
    self.release_for_recomputation = []