pub struct Cifar { /* private fields */ }Expand description
One local CIFAR-10 or CIFAR-100 binary file; RGB planar bytes are preserved.
Implementations§
Trait Implementations§
Source§impl Dataset for Cifar
impl Dataset for Cifar
Source§type Sample = VisionSample
type Sample = VisionSample
One owned item produced by the dataset.
Source§type Error = VisionError
type Error = VisionError
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 Cifar
impl Freeze for Cifar
impl RefUnwindSafe for Cifar
impl Send for Cifar
impl Sync for Cifar
impl Unpin for Cifar
impl UnsafeUnpin for Cifar
impl UnwindSafe for Cifar
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