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§

source

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>

source§

fn checkpointing( &mut self, epoch: usize, collector: &EventStoreClient ) -> Vec<CheckpointingAction>

Based on the epoch, determine if the checkpoint should be saved.

Implementations on Foreign Types§

source§

impl CheckpointingStrategy for Box<dyn CheckpointingStrategy>

source§

fn checkpointing( &mut self, epoch: usize, collector: &EventStoreClient ) -> Vec<CheckpointingAction>

Implementors§