pub struct TabularDataset { /* private fields */ }Expand description
Finite immutable rows transformed lazily for ordinary worker DataLoader use. For datasets larger than memory, use CSV/JSONL/Arrow streaming iterators.
Implementations§
Trait Implementations§
Source§impl Dataset for TabularDataset
impl Dataset for TabularDataset
Source§type Sample = TabularSample
type Sample = TabularSample
One owned item produced by the dataset.
Source§type Error = TabularError
type Error = TabularError
An error returned while loading a sample.
Source§fn get_batch_with_context(
&self,
indices: &[usize],
context: &WorkerContext,
) -> Result<Vec<Self::Sample>>
fn get_batch_with_context( &self, indices: &[usize], context: &WorkerContext, ) -> Result<Vec<Self::Sample>>
Loads one index batch with cooperative worker lifecycle context. Read more
Auto Trait Implementations§
impl Forget for TabularDataset
impl Freeze for TabularDataset
impl RefUnwindSafe for TabularDataset
impl Send for TabularDataset
impl Sync for TabularDataset
impl Unpin for TabularDataset
impl UnsafeUnpin for TabularDataset
impl UnwindSafe for TabularDataset
Blanket Implementations§
impl<T> Allocation for T
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