def begin_epoch(self):
    'Set timer if `self.add_time=True`'
    (self.cancel_train, self.cancel_valid) = (False, False)
    if self.add_time:
        self.start_epoch = time.time()
    self.log = L(getattr(self, 'epoch', 0))
Set timer if `self.add_time=True`
def begin_epoch(self):
    
    (self.cancel_train, self.cancel_valid) = (False, False)
    if self.add_time:
        self.start_epoch = time.time()
    self.log = L(getattr(self, 'epoch', 0))