pub struct LayerDropoutConfig {
pub input_dropout: Option<(f64, bool)>,
pub recurrent_dropout: Option<(f64, bool)>,
pub output_dropout: Option<f64>,
pub zoneout: Option<(f64, f64)>,
}
Expand description
Configuration for layer-specific dropout settings
Fields§
§input_dropout: Option<(f64, bool)>
§recurrent_dropout: Option<(f64, bool)>
§output_dropout: Option<f64>
§zoneout: Option<(f64, f64)>
Implementations§
Source§impl LayerDropoutConfig
impl LayerDropoutConfig
pub fn new() -> Self
pub fn with_input_dropout(self, rate: f64, variational: bool) -> Self
pub fn with_recurrent_dropout(self, rate: f64, variational: bool) -> Self
pub fn with_output_dropout(self, rate: f64) -> Self
pub fn with_zoneout(self, cell_rate: f64, hidden_rate: f64) -> Self
Trait Implementations§
Source§impl Clone for LayerDropoutConfig
impl Clone for LayerDropoutConfig
Source§fn clone(&self) -> LayerDropoutConfig
fn clone(&self) -> LayerDropoutConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LayerDropoutConfig
impl RefUnwindSafe for LayerDropoutConfig
impl Send for LayerDropoutConfig
impl Sync for LayerDropoutConfig
impl Unpin for LayerDropoutConfig
impl UnwindSafe for LayerDropoutConfig
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