pub struct GraphOptConfig {
pub steps: u32,
pub lr: f32,
pub relative_lr: bool,
pub lr_floor: f32,
pub beta1: f32,
pub beta2: f32,
}Fields§
§steps: u32§lr: f32Base Adam learning rate (see [relative_lr]).
relative_lr: boolWhen true, each optimized coordinate is scaled by max(|x|, lr_floor)
before the Adam update — useful when params span orders of magnitude
(e.g. Lg ≈ 17 nH vs gm ≈ 50 mS).
lr_floor: f32§beta1: f32§beta2: f32Implementations§
Source§impl GraphOptConfig
impl GraphOptConfig
pub fn from_steps(steps: u32) -> Self
Trait Implementations§
Source§impl Clone for GraphOptConfig
impl Clone for GraphOptConfig
Source§fn clone(&self) -> GraphOptConfig
fn clone(&self) -> GraphOptConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphOptConfig
impl Debug for GraphOptConfig
Source§impl Default for GraphOptConfig
impl Default for GraphOptConfig
Source§impl<'de> Deserialize<'de> for GraphOptConfig
impl<'de> Deserialize<'de> for GraphOptConfig
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
Auto Trait Implementations§
impl Freeze for GraphOptConfig
impl RefUnwindSafe for GraphOptConfig
impl Send for GraphOptConfig
impl Sync for GraphOptConfig
impl Unpin for GraphOptConfig
impl UnsafeUnpin for GraphOptConfig
impl UnwindSafe for GraphOptConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more