Skip to content

tenzr::checkpoint::CheckpointOptions

Configuration for a CheckpointManager.

#include <checkpoint_manager.h>

Public Attributes

Name
std::string directory
size_t max_to_keep
bool keep_best
bool higher_is_better
std::string prefix
bool async
Write checkpoints on a background thread.

Public Attributes Documentation

variable directory

std::string directory {"checkpoints"};

variable max_to_keep

size_t max_to_keep {3};

variable keep_best

bool keep_best {true};

variable higher_is_better

bool higher_is_better {false};

variable prefix

std::string prefix {"step_"};

variable async

bool async {false};

Write checkpoints on a background thread.