def attach(self, engine: Engine) -> None:
    '\n        Args:\n            engine: Ignite Engine, it can be a trainer, validator or evaluator.\n        '
    if (self._name is None):
        self.logger = engine.logger
    engine.add_event_handler(Events.STARTED, self)
Args:
    engine: Ignite Engine, it can be a trainer, validator or evaluator.
def attach(self, engine: Engine) -> None:
    '\n        Args:\n            engine: Ignite Engine, it can be a trainer, validator or evaluator.\n        '
    if (self._name is None):
        self.logger = engine.logger
    engine.add_event_handler(Events.STARTED, self)