pub struct Fp32MasterState<B: Backend, const D: usize, S: Record<B> + Clone> {
pub master: Tensor<B, D>,
pub inner: Option<S>,
}Expand description
Master parameter and the original optimizer’s state, recorded together. Use full-precision recorder settings to preserve the master for continuation.
Fields§
§master: Tensor<B, D>Authoritative FP32 parameter after the most recent update.
inner: Option<S>State returned by the wrapped optimizer.
Trait Implementations§
Source§impl<B: Clone + Backend, const D: usize, S: Clone + Record<B> + Clone> Clone for Fp32MasterState<B, D, S>
impl<B: Clone + Backend, const D: usize, S: Clone + Record<B> + Clone> Clone for Fp32MasterState<B, D, S>
Source§impl<B: Backend, const D: usize, S: Record<B> + Clone> Record<B> for Fp32MasterState<B, D, S>
impl<B: Backend, const D: usize, S: Record<B> + Clone> Record<B> for Fp32MasterState<B, D, S>
Auto Trait Implementations§
impl<B, const D: usize, S> Freeze for Fp32MasterState<B, D, S>
impl<B, const D: usize, S> RefUnwindSafe for Fp32MasterState<B, D, S>
impl<B, const D: usize, S> Send for Fp32MasterState<B, D, S>
impl<B, const D: usize, S> Sync for Fp32MasterState<B, D, S>
impl<B, const D: usize, S> Unpin for Fp32MasterState<B, D, S>
impl<B, const D: usize, S> UnsafeUnpin for Fp32MasterState<B, D, S>
impl<B, const D: usize, S> UnwindSafe for Fp32MasterState<B, D, S>
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