Skip to main content

Module prelude

Module prelude 

Source
Expand description

Prelude for checkpoint module

Structs§

Checkpoint
Complete evolution state for checkpointing
CheckpointBuilder
Builder for creating checkpoints
CheckpointManager
Checkpoint manager for automatic saving
CmaEsCheckpointState
CMA-ES checkpoint state
HyperparameterState
Hyperparameter learning state

Enums§

AlgorithmState
Algorithm-specific state variants
CheckpointFormat
Format for checkpoint serialization

Constants§

CHECKPOINT_VERSION
Current checkpoint format version
DEFAULT_MAX_CHECKPOINT_BYTES
Default cap on the size (in bytes) of a checkpoint file that load_checkpoint will deserialize (EV-48). Files larger than this, and individual length-prefixed fields larger than this, are rejected with a typed error rather than triggering an unbounded allocation.
MIN_SUPPORTED_CHECKPOINT_VERSION
Oldest checkpoint schema version this build can still load (EV-45).

Traits§

SnapshotRng
An RNG whose complete internal state can be captured to bytes and restored, enabling bit-identical checkpoint resume.

Functions§

load_checkpoint
Load a checkpoint from a file using the default size limit (DEFAULT_MAX_CHECKPOINT_BYTES).
load_checkpoint_with_limit
Load a checkpoint from a file, rejecting inputs larger than max_bytes.
save_checkpoint
Save a checkpoint to a file