Struct burn::nn::DropoutConfig
source · [−]pub struct DropoutConfig {
pub prob: f64,
}
Expand description
Configuration to create a Dropout layer.
Fields
prob: f64
The probability of randomly zeroes some elements of the input tensor during training.
Implementations
sourceimpl DropoutConfig
impl DropoutConfig
Trait Implementations
sourceimpl Clone for DropoutConfig
impl Clone for DropoutConfig
sourceimpl Config for DropoutConfig
impl Config for DropoutConfig
sourceimpl<'de> Deserialize<'de> for DropoutConfig
impl<'de> Deserialize<'de> for DropoutConfig
sourcefn 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
sourceimpl Display for DropoutConfig
impl Display for DropoutConfig
sourceimpl Serialize for DropoutConfig
impl Serialize for DropoutConfig
Auto Trait Implementations
impl RefUnwindSafe for DropoutConfig
impl Send for DropoutConfig
impl Sync for DropoutConfig
impl Unpin for DropoutConfig
impl UnwindSafe for DropoutConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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