def should_skip_training(self):
    should_by_max_steps = ((self.trainer.max_steps is not None) and (self.trainer.global_step >= self.trainer.max_steps))
    should_by_epoch = ((self.trainer.max_epochs is not None) and (self.trainer.current_epoch >= self.trainer.max_epochs))
    return (should_by_max_steps or should_by_epoch or (self.trainer.num_training_batches == 0))
def should_skip_training(self):
    should_by_max_steps = ((self.trainer.max_steps is not None) and (self.trainer.global_step >= self.trainer.max_steps))
    should_by_epoch = ((self.trainer.max_epochs is not None) and (self.trainer.current_epoch >= self.trainer.max_epochs))
    return (should_by_max_steps or should_by_epoch or (self.trainer.num_training_batches == 0))