pub struct MixOutput {
pub images: Vec<f32>,
pub labels: Vec<f32>,
pub lambdas: Vec<f32>,
pub partners: Vec<usize>,
}Expand description
Output of a batch mix operation.
Fields§
§images: Vec<f32>Mixed images, shape [batch × channels × h × w] (flat row-major).
labels: Vec<f32>Mixed labels, shape [batch × n_classes] (flat row-major).
lambdas: Vec<f32>Per-sample label mixing coefficient λ, length batch.
partners: Vec<usize>Per-sample partner index (into the original batch), length batch.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MixOutput
impl RefUnwindSafe for MixOutput
impl Send for MixOutput
impl Sync for MixOutput
impl Unpin for MixOutput
impl UnsafeUnpin for MixOutput
impl UnwindSafe for MixOutput
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