get_latest_checkpoint¶ get_latest_checkpoint(main_dir)[source]¶ Get the path to the latest checkpoint. Parameters: main_dir (Path) – Main checkpoint directory. Returns: Path to the latest checkpoint, or None if no checkpoints exist. Return type: Path | None