pub enum Init {
Zeros,
Xavier,
He,
}Expand description
Initialization scheme for layer weights.
Variants§
Zeros
Xavier
Xavier/Glorot uniform init.
This is a good default for tanh, sigmoid, and identity activations.
He
He/Kaiming uniform init.
This is a good default for ReLU-family activations.
Trait Implementations§
impl Copy for Init
impl Eq for Init
impl StructuralPartialEq for Init
Auto Trait Implementations§
impl Freeze for Init
impl RefUnwindSafe for Init
impl Send for Init
impl Sync for Init
impl Unpin for Init
impl UnwindSafe for Init
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