pub struct RestoredWeightedTraining<M, O, S, U> {
pub model: M,
pub optimizer: O,
pub scheduler: S,
pub accumulator: WeightedGradientsAccumulator<M>,
pub state: U,
}Available on crate feature
std only.Expand description
Training components restored with actual unequal-microbatch normalization state.
Fields§
§model: MModel with the recorded IDs and optional per-parameter storage dtypes.
optimizer: ORecorded optimizer state, without a parameter update.
scheduler: SScheduler at the saved position, not advanced during restore.
accumulator: WeightedGradientsAccumulator<M>Pending gradients, effective weight, microbatch count and loss scale.
state: UCaller-owned source/sampler/RNG state from the same training checkpoint.
Auto Trait Implementations§
impl<M, O, S, U> !RefUnwindSafe for RestoredWeightedTraining<M, O, S, U>
impl<M, O, S, U> !Sync for RestoredWeightedTraining<M, O, S, U>
impl<M, O, S, U> !UnwindSafe for RestoredWeightedTraining<M, O, S, U>
impl<M, O, S, U> Freeze for RestoredWeightedTraining<M, O, S, U>
impl<M, O, S, U> Send for RestoredWeightedTraining<M, O, S, U>
impl<M, O, S, U> Unpin for RestoredWeightedTraining<M, O, S, U>
impl<M, O, S, U> UnsafeUnpin for RestoredWeightedTraining<M, O, S, U>where
M: UnsafeUnpin,
O: UnsafeUnpin,
S: UnsafeUnpin,
WeightedGradientsAccumulator<M>: UnsafeUnpin,
U: UnsafeUnpin,
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