Trait burn_train::checkpoint::CheckpointingStrategy
source · pub trait CheckpointingStrategy {
// Required method
fn checkpointing(
&mut self,
epoch: usize,
collector: &EventStoreClient
) -> Vec<CheckpointingAction>;
}Expand description
Define when checkpoint should be saved and deleted.
Required Methods§
sourcefn checkpointing(
&mut self,
epoch: usize,
collector: &EventStoreClient
) -> Vec<CheckpointingAction>
fn checkpointing( &mut self, epoch: usize, collector: &EventStoreClient ) -> Vec<CheckpointingAction>
Based on the epoch, determine if the checkpoint should be saved.
Trait Implementations§
source§impl CheckpointingStrategy for Box<dyn CheckpointingStrategy>
impl CheckpointingStrategy for Box<dyn CheckpointingStrategy>
source§fn checkpointing(
&mut self,
epoch: usize,
collector: &EventStoreClient
) -> Vec<CheckpointingAction>
fn checkpointing( &mut self, epoch: usize, collector: &EventStoreClient ) -> Vec<CheckpointingAction>
Based on the epoch, determine if the checkpoint should be saved.