Trait burn::data::dataloader::Dataset
pub trait Dataset<I>: Send + Sync {
// Required methods
fn get(&self, index: usize) -> Option<I>;
fn len(&self) -> usize;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn iter(&self) -> DatasetIterator<'_, I> ⓘ
where Self: Sized { ... }
}
Expand description
The dataset trait defines a basic collection of items with a predefined size.
Required Methods§
Provided Methods§
fn iter(&self) -> DatasetIterator<'_, I> ⓘwhere
Self: Sized,
fn iter(&self) -> DatasetIterator<'_, I> ⓘwhere
Self: Sized,
Returns an iterator over the dataset.