pub enum UnaryOp {
Relu,
Sigmoid,
Tanh,
Exp,
Log,
Sqrt,
Abs,
Neg,
}Expand description
Element-wise unary operation.
Variants§
Relu
Rectified linear unit: max(0, x).
Sigmoid
Sigmoid: 1 / (1 + exp(-x)).
Tanh
Hyperbolic tangent.
Exp
Exponential.
Log
Natural logarithm.
Sqrt
Square root.
Abs
Absolute value.
Neg
Negation.
Trait Implementations§
impl Copy for UnaryOp
impl Eq for UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations§
impl Freeze for UnaryOp
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnsafeUnpin for UnaryOp
impl UnwindSafe for UnaryOp
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