CheckpointKeeper
- class CheckpointKeeper[source]
Bases:
ABC
A checkpoint cleanup interface.
Methods Summary
__call__
(steps)Iterate over the steps for which checkpoints should be kept.
Methods Documentation
- abstractmethod __call__(steps: Sequence[int]) Iterator[int] [source]
Iterate over the steps for which checkpoints should be kept.
- Parameters:
steps (Sequence[int]) – the sorted list of steps at which checkpoints were written.
- Yields:
the steps for which checkpoints should be kept
- Return type:
# noqa:DAR302