pub struct GradientsParamsRecord { /* private fields */ }Expand description
Host-owned gradient state, keyed by the original model parameter IDs.
This record can be stored alongside model, optimizer and scheduler records. Recorder precision settings apply to floating-point values; the original gradient dtype and shape are restored when loading. Use settings that do not narrow the gradient values when exact continuation is required.
Trait Implementations§
Source§impl Clone for GradientsParamsRecord
impl Clone for GradientsParamsRecord
Source§impl Debug for GradientsParamsRecord
impl Debug for GradientsParamsRecord
Source§impl<'de> Deserialize<'de> for GradientsParamsRecord
impl<'de> Deserialize<'de> for GradientsParamsRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<B: Backend> Record<B> for GradientsParamsRecord
impl<B: Backend> Record<B> for GradientsParamsRecord
Source§type Item<S: PrecisionSettings> = GradientsParamsRecord
type Item<S: PrecisionSettings> = GradientsParamsRecord
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl !RefUnwindSafe for GradientsParamsRecord
impl !UnwindSafe for GradientsParamsRecord
impl Freeze for GradientsParamsRecord
impl Send for GradientsParamsRecord
impl Sync for GradientsParamsRecord
impl Unpin for GradientsParamsRecord
impl UnsafeUnpin for GradientsParamsRecord
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