- class ignite.handlers.checkpoint.BaseSaveHandler#
Base class for save handlers
Methods to override:
In derived class, please, make sure that in distributed configuration overridden methods are called by a single process. Distributed configuration on XLA devices should be treated slightly differently: for saving checkpoint with xm.save() all processes should pass into the function. Otherwise, application gets stuck.
Method to save checkpoint with filename.
Method to remove saved checkpoint.
- abstract __call__(checkpoint, filename, metadata=None)#
Method to save checkpoint with filename. Additionally, metadata dictionary is provided.
basename: file prefix (if provided) with checkpoint name, e.g. epoch_checkpoint.
score_name: score name if provided, e.g val_acc.
priority: checkpoint priority value (higher is better), e.g. 12 or 0.6554435