pub enum ActivationOp {
Relu,
Sigmoid,
Tanh,
Softmax,
Gelu,
Silu,
Mish,
}Expand description
Activation function kind.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ActivationOp
impl Clone for ActivationOp
Source§fn clone(&self) -> ActivationOp
fn clone(&self) -> ActivationOp
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 ActivationOp
Source§impl Debug for ActivationOp
impl Debug for ActivationOp
Source§impl Display for ActivationOp
impl Display for ActivationOp
impl Eq for ActivationOp
Source§impl PartialEq for ActivationOp
impl PartialEq for ActivationOp
impl StructuralPartialEq for ActivationOp
Auto Trait Implementations§
impl Freeze for ActivationOp
impl RefUnwindSafe for ActivationOp
impl Send for ActivationOp
impl Sync for ActivationOp
impl Unpin for ActivationOp
impl UnsafeUnpin for ActivationOp
impl UnwindSafe for ActivationOp
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