pub struct AlphaDropout { /* private fields */ }Expand description
Alpha Dropout for SELU activations.
Maintains self-normalizing properties when used with SELU activation. Randomly sets elements to negative saturation value instead of zero.
§Reference
- Klambauer, G., et al. (2017). Self-Normalizing Neural Networks.
NeurIPS.
Implementations§
Trait Implementations§
Source§impl Debug for AlphaDropout
impl Debug for AlphaDropout
Source§impl Module for AlphaDropout
impl Module for AlphaDropout
Source§fn forward(&self, input: &Tensor) -> Tensor
fn forward(&self, input: &Tensor) -> Tensor
Forward pass with alpha dropout (SELU-preserving).
§Panics
Panics if the RNG mutex is poisoned (unrecoverable system state).
Source§fn parameters_mut(&mut self) -> Vec<&mut Tensor>
fn parameters_mut(&mut self) -> Vec<&mut Tensor>
Get mutable references to all learnable parameters. Read more
Source§fn refresh_caches(&mut self)
fn refresh_caches(&mut self)
Refresh any cached computations after parameters have been modified. Read more
Source§fn num_parameters(&self) -> usize
fn num_parameters(&self) -> usize
Get the number of learnable parameters.
Auto Trait Implementations§
impl !Freeze for AlphaDropout
impl RefUnwindSafe for AlphaDropout
impl Send for AlphaDropout
impl Sync for AlphaDropout
impl Unpin for AlphaDropout
impl UnsafeUnpin for AlphaDropout
impl UnwindSafe for AlphaDropout
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> 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