def initialize(self, trainer): self._out = trainer.out CommandItem.remove_commands_file(trainer.out) CommandsState.run(trainer.out) if isinstance(trainer.stop_trigger, IntervalTrigger): trainer.stop_trigger = _CommandIntervalTrigger( trainer.stop_trigger) else: trainer.stop_trigger = _CommandTrigger(trainer.stop_trigger)
def initialize(self, trainer): CommandItem.remove_commands_file(trainer.out)