pub struct BatchIterOptions {
pub shuffle: bool,
pub shuffle_seed: u64,
pub drop_last: bool,
pub augmentation: Option<ImageAugmentationPipeline>,
pub augmentation_seed: u64,
pub mixup: Option<MixUpConfig>,
pub mixup_seed: u64,
pub cutmix: Option<CutMixConfig>,
pub cutmix_seed: u64,
pub sampling: Option<SamplingPolicy>,
}Expand description
Controls mini-batch order, truncation behavior, and optional per-batch regularization.
Fields§
§shuffle: bool§shuffle_seed: u64§drop_last: bool§augmentation: Option<ImageAugmentationPipeline>§augmentation_seed: u64§mixup: Option<MixUpConfig>§mixup_seed: u64§cutmix: Option<CutMixConfig>§cutmix_seed: u64§sampling: Option<SamplingPolicy>Trait Implementations§
Source§impl Clone for BatchIterOptions
impl Clone for BatchIterOptions
Source§fn clone(&self) -> BatchIterOptions
fn clone(&self) -> BatchIterOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatchIterOptions
impl Debug for BatchIterOptions
Source§impl Default for BatchIterOptions
impl Default for BatchIterOptions
Source§fn default() -> BatchIterOptions
fn default() -> BatchIterOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchIterOptions
impl PartialEq for BatchIterOptions
impl StructuralPartialEq for BatchIterOptions
Auto Trait Implementations§
impl Freeze for BatchIterOptions
impl !RefUnwindSafe for BatchIterOptions
impl Send for BatchIterOptions
impl Sync for BatchIterOptions
impl Unpin for BatchIterOptions
impl UnsafeUnpin for BatchIterOptions
impl !UnwindSafe for BatchIterOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more