pub struct MnistDataset { /* private fields */ }Expand description
Reads MNIST samples from a HuggingFace parquet file.
Implementations§
Source§impl MnistDataset
impl MnistDataset
Sourcepub fn read_batch(&self, offset: usize, count: usize) -> Result<MnistBatch>
pub fn read_batch(&self, offset: usize, count: usize) -> Result<MnistBatch>
Read count consecutive rows starting at offset (0-indexed).
The returned batch is truncated if offset + count > len().
Auto Trait Implementations§
impl Freeze for MnistDataset
impl RefUnwindSafe for MnistDataset
impl Send for MnistDataset
impl Sync for MnistDataset
impl Unpin for MnistDataset
impl UnsafeUnpin for MnistDataset
impl UnwindSafe for MnistDataset
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