pub enum FanInOut {
FanIn,
FanOut,
}
Expand description
Number of features as input or output of a layer.
In Kaiming initialization, choosing FanIn
preserves
the magnitude of the variance of the weights in the
forward pass, choosing FanOut
preserves this
magnitude in the backward pass.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FanInOut
impl RefUnwindSafe for FanInOut
impl Send for FanInOut
impl Sync for FanInOut
impl Unpin for FanInOut
impl UnwindSafe for FanInOut
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