pub struct DataLoaderConfig {
pub batch_size: i32,
pub shuffle: bool,
pub seed: u64,
pub drop_last: bool,
}Expand description
Configuration for DataLoader.
Fields§
§batch_size: i32Number of samples per batch.
shuffle: boolWhether to shuffle indices before each epoch.
seed: u64Seed for shuffling. 0 derives a seed from the system clock, as in the donor.
drop_last: boolDrop the last incomplete batch when true.
Trait Implementations§
Source§impl Clone for DataLoaderConfig
impl Clone for DataLoaderConfig
impl Copy for DataLoaderConfig
Source§impl Debug for DataLoaderConfig
impl Debug for DataLoaderConfig
Auto Trait Implementations§
impl Forget for DataLoaderConfig
impl Freeze for DataLoaderConfig
impl Move for DataLoaderConfig
impl RefUnwindSafe for DataLoaderConfig
impl Send for DataLoaderConfig
impl Sync for DataLoaderConfig
impl Unpin for DataLoaderConfig
impl UnsafeUnpin for DataLoaderConfig
impl UnwindSafe for DataLoaderConfig
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