New Checkpoint Config
CheckpointConfig(filename, frequency = NULL, restore = TRUE, preserve_all = FALSE)
filename | (str): checkpoint file name. |
---|---|
frequency | (int): checkpointing period (number samples between checkpoints). If `NULL`, no checkpointing takes place. If ``sys.maxsize``, a single checkpoint is taken at the end of the training. |
restore | (bool): flag, indicating whether to restore from available checkpoint before the start of the training |
preserve_all | (bool): saves all checkpoints, using ``filename`` as prefix and checkpoint index as a suffix. |