#[repr(i32)]pub enum ElementWiseOperation {
Show 14 variants
kSUM = 0,
kPROD = 1,
kMAX = 2,
kMIN = 3,
kSUB = 4,
kDIV = 5,
kPOW = 6,
kFLOOR_DIV = 7,
kAND = 8,
kOR = 9,
kXOR = 10,
kEQUAL = 11,
kGREATER = 12,
kLESS = 13,
}Expand description
! ! \enum ElementWiseOperation ! ! \brief Enumerates the binary operations that may be performed by an ElementWise layer. ! ! Operations kAND, kOR, and kXOR must have inputs of DataType::kBOOL. ! ! All other operations must have inputs of floating-point type, DataType::kINT8, DataType::kINT32, or ! DataType::kINT64. ! ! \see IElementWiseLayer !
Variants§
kSUM = 0
!< Sum of the two elements.
kPROD = 1
!< Product of the two elements.
kMAX = 2
!< Maximum of the two elements.
kMIN = 3
!< Minimum of the two elements.
kSUB = 4
!< Subtract the second element from the first.
kDIV = 5
!< Divide the first element by the second.
kPOW = 6
!< The first element to the power of the second element.
kFLOOR_DIV = 7
!< Floor division of the first element by the second.
kAND = 8
!< Logical AND of two elements.
kOR = 9
!< Logical OR of two elements.
kXOR = 10
!< Logical XOR of two elements.
kEQUAL = 11
!< Check if two elements are equal.
kGREATER = 12
!< Check if element in first tensor is greater than corresponding element in second tensor.
kLESS = 13
!< Check if element in first tensor is less than corresponding element in second tensor.
Trait Implementations§
Source§impl Clone for ElementWiseOperation
impl Clone for ElementWiseOperation
Source§fn clone(&self) -> ElementWiseOperation
fn clone(&self) -> ElementWiseOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ElementWiseOperation
Source§impl Debug for ElementWiseOperation
impl Debug for ElementWiseOperation
impl Eq for ElementWiseOperation
Source§impl From<ElementWiseOperation> for ElementWiseOperation
impl From<ElementWiseOperation> for ElementWiseOperation
Source§fn from(value: ElementWiseOperation) -> Self
fn from(value: ElementWiseOperation) -> Self
Source§impl Hash for ElementWiseOperation
impl Hash for ElementWiseOperation
Source§impl Into<ElementWiseOperation> for ElementWiseOperation
impl Into<ElementWiseOperation> for ElementWiseOperation
Source§fn into(self) -> ElementWiseOperation
fn into(self) -> ElementWiseOperation
Source§impl Ord for ElementWiseOperation
impl Ord for ElementWiseOperation
Source§fn cmp(&self, other: &ElementWiseOperation) -> Ordering
fn cmp(&self, other: &ElementWiseOperation) -> 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 ElementWiseOperation
impl PartialEq for ElementWiseOperation
Source§fn eq(&self, other: &ElementWiseOperation) -> bool
fn eq(&self, other: &ElementWiseOperation) -> bool
self and other values to be equal, and is used by ==.