pub struct LayerOptimizationRule<A: Float> {
pub lr_multiplier: A,
pub weight_decay_multiplier: A,
pub frozen: bool,
pub custom_settings: HashMap<String, LayerConfig>,
}
Expand description
Layer-specific optimization rules
Fields§
§lr_multiplier: A
Learning rate multiplier for this layer
weight_decay_multiplier: A
Weight decay multiplier
frozen: bool
Whether to freeze this layer
custom_settings: HashMap<String, LayerConfig>
Custom optimizer settings
Trait Implementations§
Source§impl<A: Clone + Float> Clone for LayerOptimizationRule<A>
impl<A: Clone + Float> Clone for LayerOptimizationRule<A>
Source§fn clone(&self) -> LayerOptimizationRule<A>
fn clone(&self) -> LayerOptimizationRule<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<A> Freeze for LayerOptimizationRule<A>where
A: Freeze,
impl<A> RefUnwindSafe for LayerOptimizationRule<A>where
A: RefUnwindSafe,
impl<A> Send for LayerOptimizationRule<A>where
A: Send,
impl<A> Sync for LayerOptimizationRule<A>where
A: Sync,
impl<A> Unpin for LayerOptimizationRule<A>where
A: Unpin,
impl<A> UnwindSafe for LayerOptimizationRule<A>where
A: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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