Struct syntaxdot_transformers::layers::Dropout
source · [−]pub struct Dropout { /* private fields */ }
Expand description
Dropout layer.
This layer zeros out random elements of a tensor with probability p. Dropout is a form of regularization and prevents co-adaptation of neurons.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dropout
impl Send for Dropout
impl Sync for Dropout
impl Unpin for Dropout
impl UnwindSafe for Dropout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more