Enum BaseOperationIr
pub enum BaseOperationIr {
Show 30 variants
Reshape(ShapeOpIr),
SwapDims(SwapDimsOpIr),
Permute(PermuteOpIr),
Flip(FlipOpIr),
Expand(ShapeOpIr),
Unfold(UnfoldOpIr),
Slice(SliceOpIr),
SliceAssign(SliceAssignOpIr),
Select(SelectOpIr),
SelectAssign(SelectAssignOpIr),
MaskWhere(MaskWhereOpIr),
MaskFill(MaskFillOpIr),
Gather(GatherOpIr),
Scatter(ScatterOpIr),
ScatterNd(ScatterNdOpIr),
GatherNd(GatherNdOpIr),
Equal(BinaryOpIr),
EqualElem(ScalarOpIr),
RepeatDim(RepeatDimOpIr),
Cat(CatOpIr),
Cast(CastOpIr),
Empty(CreationOpIr),
Ones(CreationOpIr),
Zeros(CreationOpIr),
NotEqual(BinaryOpIr),
NotEqualElem(ScalarOpIr),
All(ReduceOpIr),
Any(ReduceOpIr),
AllDim(ReduceDimOpIr),
AnyDim(ReduceDimOpIr),
}Expand description
Basic operations that can be done on any tensor type.
Variants§
Reshape(ShapeOpIr)
SwapDims(SwapDimsOpIr)
Permute(PermuteOpIr)
Flip(FlipOpIr)
Expand(ShapeOpIr)
Unfold(UnfoldOpIr)
Unfold windows along an axis.
Slice(SliceOpIr)
SliceAssign(SliceAssignOpIr)
Operation corresponding to:
Float => slice assign. Int => slice assign. Bool => slice assign.
Select(SelectOpIr)
SelectAssign(SelectAssignOpIr)
Operation corresponding to:
Float => select assign. Int => select assign. Bool => select assign.
MaskWhere(MaskWhereOpIr)
Operation corresponding to:
Float => mask where. Int => mask where. Bool => mask where.
MaskFill(MaskFillOpIr)
Gather(GatherOpIr)
Scatter(ScatterOpIr)
ScatterNd(ScatterNdOpIr)
Multi-dimensional scatter operation.
GatherNd(GatherNdOpIr)
Multi-dimensional gather operation.
Equal(BinaryOpIr)
EqualElem(ScalarOpIr)
Operation corresponding to:
Float => equal elem. Int => equal elem. Bool => equal elem.
RepeatDim(RepeatDimOpIr)
Operation corresponding to:
Float => repeat dim. Int => repeat dim. Bool => repeat dim.
Cat(CatOpIr)
Cast(CastOpIr)
Cast operation, no direct operation and should be supported by fusion backend.
Empty(CreationOpIr)
Ones(CreationOpIr)
Zeros(CreationOpIr)
NotEqual(BinaryOpIr)
NotEqualElem(ScalarOpIr)
Operation corresponding to:
Float => not_equal_elem. Int => not_equal_elem. Bool => not_equal_elem.
All(ReduceOpIr)
Reduce-all over the input tensor.
Float/Int input is treated as a non-zero check; bool input is the value itself. Output is a single-element bool tensor.
Any(ReduceOpIr)
Reduce-any over the input tensor.
AllDim(ReduceDimOpIr)
Reduce-all along a dim.
AnyDim(ReduceDimOpIr)
Reduce-any along a dim.
Trait Implementations§
§impl Clone for BaseOperationIr
impl Clone for BaseOperationIr
§fn clone(&self) -> BaseOperationIr
fn clone(&self) -> BaseOperationIr
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 BaseOperationIr
impl Debug for BaseOperationIr
§impl<'de> Deserialize<'de> for BaseOperationIr
impl<'de> Deserialize<'de> for BaseOperationIr
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BaseOperationIr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BaseOperationIr, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Hash for BaseOperationIr
impl Hash for BaseOperationIr
§impl PartialEq for BaseOperationIr
impl PartialEq for BaseOperationIr
§impl Serialize for BaseOperationIr
impl Serialize for BaseOperationIr
§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 BaseOperationIr
Auto Trait Implementations§
impl Freeze for BaseOperationIr
impl RefUnwindSafe for BaseOperationIr
impl Send for BaseOperationIr
impl Sync for BaseOperationIr
impl Unpin for BaseOperationIr
impl UnsafeUnpin for BaseOperationIr
impl UnwindSafe for BaseOperationIr
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