Struct burn_core::data::dataloader::BatchDataLoader
source · pub struct BatchDataLoader<I, O> { /* private fields */ }Expand description
A data loader that can be used to iterate over a dataset in batches.
Implementations§
source§impl<I, O> BatchDataLoader<I, O>
impl<I, O> BatchDataLoader<I, O>
source§impl<I, O> BatchDataLoader<I, O>
impl<I, O> BatchDataLoader<I, O>
sourcepub fn multi_thread(
strategy: Box<dyn BatchStrategy<I>>,
dataset: Arc<dyn Dataset<I>>,
batcher: Arc<dyn Batcher<I, O>>,
num_threads: usize,
rng: Option<StdRng>
) -> MultiThreadDataLoader<O>
pub fn multi_thread( strategy: Box<dyn BatchStrategy<I>>, dataset: Arc<dyn Dataset<I>>, batcher: Arc<dyn Batcher<I, O>>, num_threads: usize, rng: Option<StdRng> ) -> MultiThreadDataLoader<O>
Trait Implementations§
source§impl<I: Send + Sync + Clone + 'static, O: Send + Sync> DataLoader<O> for BatchDataLoader<I, O>
impl<I: Send + Sync + Clone + 'static, O: Send + Sync> DataLoader<O> for BatchDataLoader<I, O>
Auto Trait Implementations§
impl<I, O> !RefUnwindSafe for BatchDataLoader<I, O>
impl<I, O> Send for BatchDataLoader<I, O>
impl<I, O> Sync for BatchDataLoader<I, O>
impl<I, O> Unpin for BatchDataLoader<I, O>
impl<I, O> !UnwindSafe for BatchDataLoader<I, O>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more