pub struct Batch {
pub x: Matrix,
pub y: Option<Matrix>,
}Expand description
Batched output: x [B, …] and optional y [B, …]. Corresponds to oa::DataLoader::Batch.
Fields§
§x: MatrixBatched input matrix with a leading batch dimension.
y: Option<Matrix>Batched label matrix with a leading batch dimension, or None.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Batch
impl !Send for Batch
impl !Sync for Batch
impl !UnwindSafe for Batch
impl Forget for Batch
impl Freeze for Batch
impl Move for Batch
impl Unpin for Batch
impl UnsafeUnpin for Batch
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