Trait burn::train::checkpoint::Checkpointer
pub trait Checkpointer<R, B>{
// Required methods
fn save(&self, epoch: usize, record: R) -> Result<(), CheckpointerError>;
fn delete(&self, epoch: usize) -> Result<(), CheckpointerError>;
fn restore(
&self,
epoch: usize,
device: &<B as Backend>::Device,
) -> Result<R, CheckpointerError>;
}
Expand description
The trait for checkpointer.
Required Methods§
fn save(&self, epoch: usize, record: R) -> Result<(), CheckpointerError>
fn save(&self, epoch: usize, record: R) -> Result<(), CheckpointerError>
fn delete(&self, epoch: usize) -> Result<(), CheckpointerError>
fn delete(&self, epoch: usize) -> Result<(), CheckpointerError>
Delete the record at the given epoch if present.