Trait burn::data::dataloader::DataLoader
pub trait DataLoader<O>: Send {
// Required methods
fn iter<'a>(&'a self) -> Box<dyn DataLoaderIterator<O, Item = O> + 'a>;
fn num_items(&self) -> usize;
}
Expand description
A data loader that can be used to iterate over a dataset.
Required Methods§
fn iter<'a>(&'a self) -> Box<dyn DataLoaderIterator<O, Item = O> + 'a>
fn iter<'a>(&'a self) -> Box<dyn DataLoaderIterator<O, Item = O> + 'a>
Returns a boxed iterator to iterate over the data loader.