Enum engram::nn::Initializer
source · pub enum Initializer {
Xavier,
Kaiming,
Constant(f64),
}
Expand description
Initialization methods for weight matrices.
Variants§
Xavier
Xavier (Glorot) initialization. Gaussian, µ = 0, σ = √[2 / (f_in + f_out)]
Kaiming
Kaiming (He) initialization. Gaussian, µ = 0, σ = √[2 / f_in]
Constant(f64)
Constant initialization. All weights are set to the given value.
Implementations§
source§impl Initializer
impl Initializer
Trait Implementations§
source§impl Debug for Initializer
impl Debug for Initializer
source§impl PartialEq for Initializer
impl PartialEq for Initializer
source§fn eq(&self, other: &Initializer) -> bool
fn eq(&self, other: &Initializer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Initializer
Auto Trait Implementations§
impl Freeze for Initializer
impl RefUnwindSafe for Initializer
impl Send for Initializer
impl Sync for Initializer
impl Unpin for Initializer
impl UnwindSafe for Initializer
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