Trait burn::data::dataloader::BatchStrategy
pub trait BatchStrategy<I>: Send {
// Required methods
fn add(&mut self, item: I);
fn batch(&mut self, force: bool) -> Option<Vec<I>>;
fn clone_dyn(&self) -> Box<dyn BatchStrategy<I>>;
}
Expand description
A strategy to batch items.