pub enum GatingMode {
None,
Gated,
Blended,
}Expand description
Activation gating mode for a WaveNet layer (NAMCore GatingMode).
Variants§
None
No gating: out = activation(z).
Gated
Gated: out = primary(z_a) * secondary(z_b) (classic tanh*sigmoid).
Blended
Blended: out = α·primary(z_a) + (1-α)·z_a, α = secondary(z_b).
Trait Implementations§
Source§impl Clone for GatingMode
impl Clone for GatingMode
Source§fn clone(&self) -> GatingMode
fn clone(&self) -> GatingMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GatingMode
Source§impl Debug for GatingMode
impl Debug for GatingMode
impl Eq for GatingMode
Source§impl PartialEq for GatingMode
impl PartialEq for GatingMode
Source§fn eq(&self, other: &GatingMode) -> bool
fn eq(&self, other: &GatingMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GatingMode
Auto Trait Implementations§
impl Freeze for GatingMode
impl RefUnwindSafe for GatingMode
impl Send for GatingMode
impl Sync for GatingMode
impl Unpin for GatingMode
impl UnsafeUnpin for GatingMode
impl UnwindSafe for GatingMode
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