pub struct Dropout { /* private fields */ }Expand description
Dropout: randomly zeros elements with probability p during training.
During training, each element is independently set to zero with probability
p, and the remaining elements are scaled by 1 / (1 - p) to preserve the
expected value. In eval mode, the input is passed through unchanged.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dropout
impl RefUnwindSafe for Dropout
impl Send for Dropout
impl Sync for Dropout
impl Unpin for Dropout
impl UnsafeUnpin for Dropout
impl UnwindSafe for Dropout
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