auto_detect_restart

jaxrens.io.checkpoint.auto_detect_restart(working_dir)[source]

Find the newest valid checkpoint in a directory.

Parameters:

working_dir (Path | str) – Directory to search.

Returns:

Path to newest checkpoint, or None if not found.

Return type:

Path | None