pub struct SquareAvgState<B: Backend, const D: usize> {
pub square_avg: Tensor<B, D>,
}Expand description
SquareAvgState is to store and pass optimizer step params.
Fields§
§square_avg: Tensor<B, D>Current squared average.
Implementations§
Source§impl<B: Backend, const D: usize> SquareAvgState<B, D>
impl<B: Backend, const D: usize> SquareAvgState<B, D>
Trait Implementations§
Source§impl<B: Backend, const D: usize> Record<B> for SquareAvgState<B, D>
impl<B: Backend, const D: usize> Record<B> for SquareAvgState<B, D>
Source§type Item<S: PrecisionSettings> = SquareAvgStateItem<B, D, S>
type Item<S: PrecisionSettings> = SquareAvgStateItem<B, D, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B, const D: usize> Freeze for SquareAvgState<B, D>
impl<B, const D: usize> RefUnwindSafe for SquareAvgState<B, D>where
Tensor<B, D>: RefUnwindSafe,
impl<B, const D: usize> Send for SquareAvgState<B, D>
impl<B, const D: usize> Sync for SquareAvgState<B, D>
impl<B, const D: usize> Unpin for SquareAvgState<B, D>
impl<B, const D: usize> UnsafeUnpin for SquareAvgState<B, D>where
Tensor<B, D>: UnsafeUnpin,
impl<B, const D: usize> UnwindSafe for SquareAvgState<B, D>where
Tensor<B, D>: UnwindSafe,
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