Returns the most recent (highest step count) checkpoint step under base dir.
(cls, base_dir: str)
| 868 | |
| 869 | @classmethod |
| 870 | def latest_checkpoint_step(cls, base_dir: str) -> int: |
| 871 | """Returns the most recent (highest step count) checkpoint step under base dir.""" |
| 872 | # Note: checkpoint_steps should already filter incomplete checkpoints. |
| 873 | return max(cls.checkpoint_steps(base_dir)) |
| 874 | |
| 875 | def __init__(self, cfg: Module.Config, *, parent: Optional[Module]): |
| 876 | super().__init__(cfg, parent=parent) |