#[repr(u32)]pub enum cutensorOperator_t {
Show 33 variants
CUTENSOR_OP_IDENTITY = 1,
CUTENSOR_OP_SQRT = 2,
CUTENSOR_OP_RELU = 8,
CUTENSOR_OP_CONJ = 9,
CUTENSOR_OP_RCP = 10,
CUTENSOR_OP_SIGMOID = 11,
CUTENSOR_OP_TANH = 12,
CUTENSOR_OP_EXP = 22,
CUTENSOR_OP_LOG = 23,
CUTENSOR_OP_ABS = 24,
CUTENSOR_OP_NEG = 25,
CUTENSOR_OP_SIN = 26,
CUTENSOR_OP_COS = 27,
CUTENSOR_OP_TAN = 28,
CUTENSOR_OP_SINH = 29,
CUTENSOR_OP_COSH = 30,
CUTENSOR_OP_ASIN = 31,
CUTENSOR_OP_ACOS = 32,
CUTENSOR_OP_ATAN = 33,
CUTENSOR_OP_ASINH = 34,
CUTENSOR_OP_ACOSH = 35,
CUTENSOR_OP_ATANH = 36,
CUTENSOR_OP_CEIL = 37,
CUTENSOR_OP_FLOOR = 38,
CUTENSOR_OP_MISH = 39,
CUTENSOR_OP_SWISH = 40,
CUTENSOR_OP_SOFT_PLUS = 41,
CUTENSOR_OP_SOFT_SIGN = 42,
CUTENSOR_OP_ADD = 3,
CUTENSOR_OP_MUL = 5,
CUTENSOR_OP_MAX = 6,
CUTENSOR_OP_MIN = 7,
CUTENSOR_OP_UNKNOWN = 126,
}Expand description
This enum captures all unary and binary element-wise operations supported by the cuTENSOR library.
Variants§
CUTENSOR_OP_IDENTITY = 1
Identity operator (i.e., elements are not changed).
CUTENSOR_OP_SQRT = 2
Square root.
CUTENSOR_OP_RELU = 8
Rectified linear unit.
CUTENSOR_OP_CONJ = 9
Complex conjugate.
CUTENSOR_OP_RCP = 10
Reciprocal.
CUTENSOR_OP_SIGMOID = 11
y=1/(1+exp(-x)).
CUTENSOR_OP_TANH = 12
y=tanh(x).
CUTENSOR_OP_EXP = 22
Exponentiation.
CUTENSOR_OP_LOG = 23
Log (base e).
CUTENSOR_OP_ABS = 24
Absolute value.
CUTENSOR_OP_NEG = 25
Negation.
CUTENSOR_OP_SIN = 26
Sine.
CUTENSOR_OP_COS = 27
Cosine.
CUTENSOR_OP_TAN = 28
Tangent.
CUTENSOR_OP_SINH = 29
Hyperbolic sine.
CUTENSOR_OP_COSH = 30
Hyperbolic cosine.
CUTENSOR_OP_ASIN = 31
Inverse sine.
CUTENSOR_OP_ACOS = 32
Inverse cosine.
CUTENSOR_OP_ATAN = 33
Inverse tangent.
CUTENSOR_OP_ASINH = 34
Inverse hyperbolic sine.
CUTENSOR_OP_ACOSH = 35
Inverse hyperbolic cosine.
CUTENSOR_OP_ATANH = 36
Inverse hyperbolic tangent.
CUTENSOR_OP_CEIL = 37
Ceiling.
CUTENSOR_OP_FLOOR = 38
Floor.
CUTENSOR_OP_MISH = 39
Mish y=x*tanh(softplus(x)).
CUTENSOR_OP_SWISH = 40
Swish y=x*sigmoid(x).
CUTENSOR_OP_SOFT_PLUS = 41
Softplus y=log(exp(x)+1).
CUTENSOR_OP_SOFT_SIGN = 42
Softsign y=x/(abs(x)+1).
CUTENSOR_OP_ADD = 3
Addition of two elements.
CUTENSOR_OP_MUL = 5
Multiplication of two elements.
CUTENSOR_OP_MAX = 6
Maximum of two elements.
CUTENSOR_OP_MIN = 7
Minimum of two elements.
CUTENSOR_OP_UNKNOWN = 126
reserved for internal use only.
Trait Implementations§
Source§impl Clone for cutensorOperator_t
impl Clone for cutensorOperator_t
Source§fn clone(&self) -> cutensorOperator_t
fn clone(&self) -> cutensorOperator_t
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 cutensorOperator_t
impl Debug for cutensorOperator_t
Source§impl From<cutensorOperator_t> for u32
impl From<cutensorOperator_t> for u32
Source§fn from(enum_value: cutensorOperator_t) -> Self
fn from(enum_value: cutensorOperator_t) -> Self
Converts to this type from the input type.
Source§impl Hash for cutensorOperator_t
impl Hash for cutensorOperator_t
Source§impl Ord for cutensorOperator_t
impl Ord for cutensorOperator_t
Source§fn cmp(&self, other: &cutensorOperator_t) -> Ordering
fn cmp(&self, other: &cutensorOperator_t) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for cutensorOperator_t
impl PartialEq for cutensorOperator_t
Source§fn eq(&self, other: &cutensorOperator_t) -> bool
fn eq(&self, other: &cutensorOperator_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for cutensorOperator_t
impl PartialOrd for cutensorOperator_t
Source§impl TryFrom<u32> for cutensorOperator_t
impl TryFrom<u32> for cutensorOperator_t
Source§type Error = TryFromPrimitiveError<cutensorOperator_t>
type Error = TryFromPrimitiveError<cutensorOperator_t>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for cutensorOperator_t
impl TryFromPrimitive for cutensorOperator_t
const NAME: &'static str = "cutensorOperator_t"
type Primitive = u32
type Error = TryFromPrimitiveError<cutensorOperator_t>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for cutensorOperator_t
impl Eq for cutensorOperator_t
impl StructuralPartialEq for cutensorOperator_t
Auto Trait Implementations§
impl Freeze for cutensorOperator_t
impl RefUnwindSafe for cutensorOperator_t
impl Send for cutensorOperator_t
impl Sync for cutensorOperator_t
impl Unpin for cutensorOperator_t
impl UnsafeUnpin for cutensorOperator_t
impl UnwindSafe for cutensorOperator_t
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