pub struct AccumulationConfig {
pub strategy: GradientAccumulationStrategy,
pub accumulation_steps: usize,
pub clear_after_step: bool,
}Expand description
Configuration for gradient accumulation
Fields§
§strategy: GradientAccumulationStrategy§accumulation_steps: usize§clear_after_step: boolImplementations§
Trait Implementations§
Source§impl Clone for AccumulationConfig
impl Clone for AccumulationConfig
Source§fn clone(&self) -> AccumulationConfig
fn clone(&self) -> AccumulationConfig
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 AccumulationConfig
impl Debug for AccumulationConfig
Auto Trait Implementations§
impl Freeze for AccumulationConfig
impl RefUnwindSafe for AccumulationConfig
impl Send for AccumulationConfig
impl Sync for AccumulationConfig
impl Unpin for AccumulationConfig
impl UnwindSafe for AccumulationConfig
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