pub enum ActivationType {
ReLU,
Sigmoid,
Tanh,
LeakyReLU(f32),
}Expand description
Activation function types
Variants§
ReLU
ReLU activation
Sigmoid
Sigmoid activation
Tanh
Tanh activation
LeakyReLU(f32)
Leaky ReLU with alpha parameter
Trait Implementations§
Source§impl Clone for ActivationType
impl Clone for ActivationType
Source§fn clone(&self) -> ActivationType
fn clone(&self) -> ActivationType
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 moreSource§impl Debug for ActivationType
impl Debug for ActivationType
impl Copy for ActivationType
Auto Trait Implementations§
impl Freeze for ActivationType
impl RefUnwindSafe for ActivationType
impl Send for ActivationType
impl Sync for ActivationType
impl Unpin for ActivationType
impl UnsafeUnpin for ActivationType
impl UnwindSafe for ActivationType
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