oa::DataLoaderConfig

Configuration for DataLoader. Corresponds to oa::DataLoaderConfig.

StRust public API

Declaration

pub struct DataLoaderConfig { pub batch_size: i32, pub shuffle: bool, pub seed: u64, pub drop_last: bool, }
Public Rust declaration.

Public Methods

fn clone(&self) -> DataLoaderConfig
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

fn default() -> Self

Public Data Members

batch_sizei32field
shuffleboolfield
seedu64field
drop_lastboolfield

Public Method Documentation

fn clone( &self ) -> DataLoaderConfig
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.