pub enum ActivationFn64 {
Relu,
Sigmoid,
Tanh,
Linear,
}Expand description
Activation function for f64-precision neural network layers.
Variants§
Relu
Rectified linear unit: max(0, x).
Sigmoid
Logistic sigmoid: 1 / (1 + exp(-x)).
Tanh
Hyperbolic tangent.
Linear
Identity (no activation).
Implementations§
Trait Implementations§
Source§impl Clone for ActivationFn64
impl Clone for ActivationFn64
Source§fn clone(&self) -> ActivationFn64
fn clone(&self) -> ActivationFn64
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 moreSource§impl Debug for ActivationFn64
impl Debug for ActivationFn64
Source§impl PartialEq for ActivationFn64
impl PartialEq for ActivationFn64
Source§fn eq(&self, other: &ActivationFn64) -> bool
fn eq(&self, other: &ActivationFn64) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActivationFn64
Auto Trait Implementations§
impl Freeze for ActivationFn64
impl RefUnwindSafe for ActivationFn64
impl Send for ActivationFn64
impl Sync for ActivationFn64
impl Unpin for ActivationFn64
impl UnsafeUnpin for ActivationFn64
impl UnwindSafe for ActivationFn64
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more