pub struct Mnist { /* private fields */ }Implementations§
Trait Implementations§
Source§impl DataLoader for Mnist
impl DataLoader for Mnist
Source§fn 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.
Source§fn 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.
Source§fn get_batch(
&self,
start: usize,
end: usize,
slice: Option<DataSlice>,
) -> Result<(Var, Var), AutoDiffError>
fn get_batch( &self, start: usize, end: usize, slice: Option<DataSlice>, ) -> Result<(Var, Var), AutoDiffError>
Return a batch following original order.
Source§fn get_indexed_batch(
&self,
index: &[usize],
slice: Option<DataSlice>,
) -> Result<(Var, Var), AutoDiffError>
fn get_indexed_batch( &self, index: &[usize], slice: Option<DataSlice>, ) -> Result<(Var, Var), AutoDiffError>
Return a batch given the index.
Auto Trait Implementations§
impl Freeze for Mnist
impl !RefUnwindSafe for Mnist
impl !Send for Mnist
impl !Sync for Mnist
impl Unpin for Mnist
impl !UnwindSafe for Mnist
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