#[repr(i32)]pub enum UnaryOperation {
Show 25 variants
kEXP = 0,
kLOG = 1,
kSQRT = 2,
kRECIP = 3,
kABS = 4,
kNEG = 5,
kSIN = 6,
kCOS = 7,
kTAN = 8,
kSINH = 9,
kCOSH = 10,
kASIN = 11,
kACOS = 12,
kATAN = 13,
kASINH = 14,
kACOSH = 15,
kATANH = 16,
kCEIL = 17,
kFLOOR = 18,
kERF = 19,
kNOT = 20,
kSIGN = 21,
kROUND = 22,
kISINF = 23,
kISNAN = 24,
}Expand description
! ! \enum UnaryOperation ! ! \brief Enumerates the unary operations that may be performed by a Unary layer. ! ! Operations kNOT must have inputs of DataType::kBOOL. ! ! Operation kSIGN and kABS must have inputs of floating-point type, DataType::kINT8, DataType::kINT32 or ! DataType::kINT64. ! ! Operation kISINF must have inputs of floating-point type. ! ! All other operations must have inputs of floating-point type. ! ! \see IUnaryLayer !
Variants§
kEXP = 0
!< Exponentiation.
kLOG = 1
!< Log (base e).
kSQRT = 2
!< Square root.
kRECIP = 3
!< Reciprocal.
kABS = 4
!< Absolute value.
kNEG = 5
!< Negation.
kSIN = 6
!< Sine.
kCOS = 7
!< Cosine.
kTAN = 8
!< Tangent.
kSINH = 9
!< Hyperbolic sine.
kCOSH = 10
!< Hyperbolic cosine.
kASIN = 11
!< Inverse sine.
kACOS = 12
!< Inverse cosine.
kATAN = 13
!< Inverse tangent.
kASINH = 14
!< Inverse hyperbolic sine.
kACOSH = 15
!< Inverse hyperbolic cosine.
kATANH = 16
!< Inverse hyperbolic tangent.
kCEIL = 17
!< Ceiling.
kFLOOR = 18
!< Floor.
kERF = 19
!< Gauss error function.
kNOT = 20
!< Logical NOT.
kSIGN = 21
!< Sign, If input > 0, output 1; if input < 0, output -1; if input == 0, output 0.
kROUND = 22
!< Round to nearest even for floating-point data type.
kISINF = 23
!< Return true if input value equals +/- infinity for floating-point data type.
kISNAN = 24
!< Return true if input value is a NaN for floating-point data type.
Trait Implementations§
Source§impl Clone for UnaryOperation
impl Clone for UnaryOperation
Source§fn clone(&self) -> UnaryOperation
fn clone(&self) -> UnaryOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnaryOperation
impl Debug for UnaryOperation
Source§impl From<UnaryOperation> for UnaryOperation
impl From<UnaryOperation> for UnaryOperation
Source§fn from(value: UnaryOperation) -> Self
fn from(value: UnaryOperation) -> Self
Source§impl Hash for UnaryOperation
impl Hash for UnaryOperation
Source§impl Into<UnaryOperation> for UnaryOperation
impl Into<UnaryOperation> for UnaryOperation
Source§fn into(self) -> UnaryOperation
fn into(self) -> UnaryOperation
Source§impl Ord for UnaryOperation
impl Ord for UnaryOperation
Source§fn cmp(&self, other: &UnaryOperation) -> Ordering
fn cmp(&self, other: &UnaryOperation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for UnaryOperation
impl PartialEq for UnaryOperation
Source§fn eq(&self, other: &UnaryOperation) -> bool
fn eq(&self, other: &UnaryOperation) -> bool
self and other values to be equal, and is used by ==.