pub struct ConcatDataset<D> { /* private fields */ }Expand description
A dataset that maps one global index across consecutive child datasets.
Implementations§
Trait Implementations§
Source§impl<D> Dataset for ConcatDataset<D>where
D: Dataset,
impl<D> Dataset for ConcatDataset<D>where
D: Dataset,
Source§fn get_batch(&self, indices: &[usize]) -> Result<Vec<Self::Sample>, Self::Error>
fn get_batch(&self, indices: &[usize]) -> Result<Vec<Self::Sample>, Self::Error>
Loads samples for one index batch. Read more
Source§fn get_batch_with_context(
&self,
indices: &[usize],
context: &WorkerContext,
) -> Result<Vec<Self::Sample>, Self::Error>
fn get_batch_with_context( &self, indices: &[usize], context: &WorkerContext, ) -> Result<Vec<Self::Sample>, Self::Error>
Loads one index batch with cooperative worker lifecycle context. Read more
impl<D> ReplaySafeDataset for ConcatDataset<D>where
D: ReplaySafeDataset,
Auto Trait Implementations§
impl<D> Freeze for ConcatDataset<D>
impl<D> RefUnwindSafe for ConcatDataset<D>where
Vec<D>: RefUnwindSafe,
impl<D> Send for ConcatDataset<D>
impl<D> Sync for ConcatDataset<D>
impl<D> Unpin for ConcatDataset<D>
impl<D> UnsafeUnpin for ConcatDataset<D>where
Vec<D>: UnsafeUnpin,
impl<D> UnwindSafe for ConcatDataset<D>where
Vec<D>: UnwindSafe,
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