pub struct AccumulatedGradients {
pub gradients: GradientsParams,
pub state: WeightedAccumulationState,
}Expand description
Result of an explicitly completed accumulation window.
Fields§
§gradients: GradientsParamsPresent gradients only; globally/local unused parameters are not invented.
state: WeightedAccumulationStateActual counts and loss scale of the window that produced these gradients.
Auto Trait Implementations§
impl !RefUnwindSafe for AccumulatedGradients
impl !Sync for AccumulatedGradients
impl !UnwindSafe for AccumulatedGradients
impl Freeze for AccumulatedGradients
impl Send for AccumulatedGradients
impl Unpin for AccumulatedGradients
impl UnsafeUnpin for AccumulatedGradients
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