pub struct DropoutConfig {
pub probability: f32,
pub seed: u64,
}
Expand description
Specifies configuration parameters for a Dropout Layer.
Fields§
§probability: f32
The probability to clamp a value to zero
seed: u64
The initial seed for the (pseudo-)random generator
Trait Implementations§
source§impl Clone for DropoutConfig
impl Clone for DropoutConfig
source§fn clone(&self) -> DropoutConfig
fn clone(&self) -> DropoutConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DropoutConfig
impl Debug for DropoutConfig
source§impl Default for DropoutConfig
impl Default for DropoutConfig
source§fn default() -> DropoutConfig
fn default() -> DropoutConfig
Returns the “default value” for a type. Read more
source§impl Into<LayerType> for DropoutConfig
impl Into<LayerType> for DropoutConfig
impl Copy 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§
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