def on_stage_start(self, state: RunnerState):
Prepare ``state.logdir`` for the current stage
assert state.logdir is not None
state.logdir.mkdir(parents=True, exist_ok=True)
self.logger = self._get_logger(state.logdir)
def on_stage_end(self, state):
Called at the end of each stage
After Change
def on_stage_start(self, state: RunnerState):
Prepare ``state.logdir`` for the current stage
if state.logdir:
state.logdir.mkdir(parents=True, exist_ok=True)
self.logger = self._get_logger(state.logdir)
def on_stage_end(self, state):
Called at the end of each stage