pub struct Dropout { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dropout
impl<'de> Deserialize<'de> for Dropout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<U> Forward<U> for Dropoutwhere
U: DropOut,
impl<U> Forward<U> for Dropoutwhere
U: DropOut,
type Output = <U as DropOut>::Output
Source§fn forward_then<F>(&self, input: &Rhs, then: F) -> Result<Self::Output, Error>
fn forward_then<F>(&self, input: &Rhs, then: F) -> Result<Self::Output, Error>
this method enables the forward pass to be generically activated using some closure.
This is useful for isolating the logic of the forward pass from that of the activation
function and is often used by layers and models.
Source§impl PartialOrd for Dropout
impl PartialOrd for Dropout
impl Copy for Dropout
impl StructuralPartialEq for Dropout
Auto Trait Implementations§
impl Freeze for Dropout
impl RefUnwindSafe for Dropout
impl Send for Dropout
impl Sync for Dropout
impl Unpin 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