Enum NumericOperationIr
pub enum NumericOperationIr {
Show 56 variants
Add(BinaryOpIr),
AddScalar(ScalarOpIr),
Sub(BinaryOpIr),
SubScalar(ScalarOpIr),
Div(BinaryOpIr),
DivScalar(ScalarOpIr),
Rem(BinaryOpIr),
RemScalar(ScalarOpIr),
Mul(BinaryOpIr),
MulScalar(ScalarOpIr),
Abs(UnaryOpIr),
Full(FullOpIr),
MeanDim(ReduceDimOpIr),
Mean(ReduceOpIr),
Sum(ReduceOpIr),
SumDim(ReduceDimOpIr),
SumDims(ReduceDimsOpIr),
Prod(ReduceOpIr),
ProdDim(ReduceDimOpIr),
Greater(BinaryOpIr),
GreaterElem(ScalarOpIr),
GreaterEqual(BinaryOpIr),
GreaterEqualElem(ScalarOpIr),
Lower(BinaryOpIr),
LowerElem(ScalarOpIr),
LowerEqual(BinaryOpIr),
LowerEqualElem(ScalarOpIr),
ArgMax(ReduceDimOpIr),
ArgTopK(ReduceDimOpIr),
TopK(ReduceDimOpIr),
TopKWithIndices(TopKWithIndicesOpIr),
ArgMin(ReduceDimOpIr),
Max(ReduceOpIr),
MaxDimWithIndices(ReduceDimWithIndicesOpIr),
MinDimWithIndices(ReduceDimWithIndicesOpIr),
Min(ReduceOpIr),
MaxDim(ReduceDimOpIr),
MinDim(ReduceDimOpIr),
MaxAbs(ReduceOpIr),
MaxAbsDim(ReduceDimOpIr),
Clamp(ClampOpIr),
IntRandom(RandomOpIr),
Powi(BinaryOpIr),
PowiScalar(ScalarOpIr),
CumSum(DimOpIr),
CumProd(DimOpIr),
CumMin(DimOpIr),
CumMax(DimOpIr),
Neg(UnaryOpIr),
Sign(UnaryOpIr),
ClampMin(ScalarOpIr),
ClampMax(ScalarOpIr),
Sort(SortOpIr),
SortWithIndices(SortWithIndicesOpIr),
ArgSort(SortOpIr),
Pad(PadOpIr),
}Expand description
Numeric operations on int and float tensors.
Variants§
Add(BinaryOpIr)
AddScalar(ScalarOpIr)
Operation corresponding to:
Float => add scalar. Int => add scalar.
Sub(BinaryOpIr)
SubScalar(ScalarOpIr)
Operation corresponding to:
Float => sub scalar. Int => sub scalar.
Div(BinaryOpIr)
DivScalar(ScalarOpIr)
Operation corresponding to:
Float => div scalar. Int => div scalar.
Rem(BinaryOpIr)
RemScalar(ScalarOpIr)
Operation corresponding to:
Float => rem scalar. Int => rem scalar.
Mul(BinaryOpIr)
MulScalar(ScalarOpIr)
Operation corresponding to:
Float => mul scalar. Int => mul scalar.
Abs(UnaryOpIr)
Full(FullOpIr)
MeanDim(ReduceDimOpIr)
Mean(ReduceOpIr)
Sum(ReduceOpIr)
SumDim(ReduceDimOpIr)
SumDims(ReduceDimsOpIr)
Operation corresponding to summing several dimensions at once.
Prod(ReduceOpIr)
ProdDim(ReduceDimOpIr)
Greater(BinaryOpIr)
GreaterElem(ScalarOpIr)
Operation corresponding to:
Float => greater elem. Int => greater elem.
GreaterEqual(BinaryOpIr)
Operation corresponding to:
Float => greater equal. Int => greater elem.
GreaterEqualElem(ScalarOpIr)
Operation corresponding to:
Float => greater equal elem. Int => greater equal elem.
Lower(BinaryOpIr)
LowerElem(ScalarOpIr)
Operation corresponding to:
Float => lower elem. Int => lower elem.
LowerEqual(BinaryOpIr)
Operation corresponding to:
Float => lower equal. Int => lower equal.
LowerEqualElem(ScalarOpIr)
Operation corresponding to:
Float => lower equal elem. Int => lower equal elem.
ArgMax(ReduceDimOpIr)
ArgTopK(ReduceDimOpIr)
TopK(ReduceDimOpIr)
TopKWithIndices(TopKWithIndicesOpIr)
Operation corresponding to:
Float => topk with indices. Int => topk with indices.
ArgMin(ReduceDimOpIr)
Max(ReduceOpIr)
MaxDimWithIndices(ReduceDimWithIndicesOpIr)
Operation corresponding to:
Float => max dim with indices. Int => max dim with indices.
MinDimWithIndices(ReduceDimWithIndicesOpIr)
Operation corresponding to:
Float => min dim with indices. Int => min dim with indices.
Min(ReduceOpIr)
MaxDim(ReduceDimOpIr)
MinDim(ReduceDimOpIr)
MaxAbs(ReduceOpIr)
MaxAbsDim(ReduceDimOpIr)
Operation corresponding to:
Float => max_abs dim. Int => max_abs dim.
Clamp(ClampOpIr)
IntRandom(RandomOpIr)
Operation corresponding to:
Int => random.
Powi(BinaryOpIr)
PowiScalar(ScalarOpIr)
Operation corresponding to:
Float => powi_scalar. Int => powi_scalar.
CumSum(DimOpIr)
CumProd(DimOpIr)
CumMin(DimOpIr)
CumMax(DimOpIr)
Neg(UnaryOpIr)
Sign(UnaryOpIr)
ClampMin(ScalarOpIr)
ClampMax(ScalarOpIr)
Sort(SortOpIr)
Sort along a dim. Output shares the input’s shape and dtype.
SortWithIndices(SortWithIndicesOpIr)
Sort along a dim, also returning the source indices.
ArgSort(SortOpIr)
Sort along a dim and return only the indices (i.e., the argsort).
Pad(PadOpIr)
Trait Implementations§
§impl Clone for NumericOperationIr
impl Clone for NumericOperationIr
§fn clone(&self) -> NumericOperationIr
fn clone(&self) -> NumericOperationIr
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for NumericOperationIr
impl Debug for NumericOperationIr
§impl<'de> Deserialize<'de> for NumericOperationIr
impl<'de> Deserialize<'de> for NumericOperationIr
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NumericOperationIr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NumericOperationIr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Hash for NumericOperationIr
impl Hash for NumericOperationIr
§impl PartialEq for NumericOperationIr
impl PartialEq for NumericOperationIr
§fn eq(&self, other: &NumericOperationIr) -> bool
fn eq(&self, other: &NumericOperationIr) -> bool
self and other values to be equal, and is used by ==.§impl Serialize for NumericOperationIr
impl Serialize for NumericOperationIr
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for NumericOperationIr
Auto Trait Implementations§
impl Freeze for NumericOperationIr
impl RefUnwindSafe for NumericOperationIr
impl Send for NumericOperationIr
impl Sync for NumericOperationIr
impl Unpin for NumericOperationIr
impl UnsafeUnpin for NumericOperationIr
impl UnwindSafe for NumericOperationIr
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more