Struct auto_diff_data_pipe::dataloader::mnist::Mnist
source · [−]pub struct Mnist { /* private fields */ }Implementations
Trait Implementations
sourceimpl DataLoader for Mnist
impl DataLoader for Mnist
sourcefn get_size(
&self,
slice: Option<DataSlice>
) -> Result<Vec<usize>, AutoDiffError>
fn get_size(
&self,
slice: Option<DataSlice>
) -> Result<Vec<usize>, AutoDiffError>
The shape of the data if applicable.
sourcefn get_item(
&self,
index: usize,
slice: Option<DataSlice>
) -> Result<(Var, Var), AutoDiffError>
fn get_item(
&self,
index: usize,
slice: Option<DataSlice>
) -> Result<(Var, Var), AutoDiffError>
Return one sample.
Auto Trait Implementations
impl !RefUnwindSafe for Mnist
impl !Send for Mnist
impl !Sync for Mnist
impl Unpin for Mnist
impl !UnwindSafe for Mnist
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more