def __call__(self, engine: Engine) -> None:
    '\n        Args:\n            engine: Ignite Engine, it can be a trainer, validator or evaluator.\n        '
    checkpoint = torch.load(self.load_path, map_location=self.map_location)
    if (len(self.load_dict) == 1):
        key = list(self.load_dict.keys())[0]
        if (not (key in checkpoint)):
            checkpoint = {key: checkpoint}
    Checkpoint.load_objects(to_load=self.load_dict, checkpoint=checkpoint)
    self.logger.info(f'Restored all variables from {self.load_path}')
Args:
    engine: Ignite Engine, it can be a trainer, validator or evaluator.
def __call__(self, engine: Engine) -> None:
    '\n        Args:\n            engine: Ignite Engine, it can be a trainer, validator or evaluator.\n        '
    checkpoint = torch.load(self.load_path, map_location=self.map_location)
    if (len(self.load_dict) == 1):
        key = list(self.load_dict.keys())[0]
        if (not (key in checkpoint)):
            checkpoint = {key: checkpoint}
    Checkpoint.load_objects(to_load=self.load_dict, checkpoint=checkpoint)
    self.logger.info(f'Restored all variables from {self.load_path}')