pub enum BaseOperationIr {
Show 22 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),
Equal(BinaryOpIr),
EqualElem(ScalarOpIr),
RepeatDim(RepeatDimOpIr),
Cat(CatOpIr),
Cast(CastOpIr),
Empty(CreationOpIr),
Ones(CreationOpIr),
Zeros(CreationOpIr),
}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)
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)
Trait Implementations§
Source§impl Clone for BaseOperationIr
impl Clone for BaseOperationIr
Source§fn clone(&self) -> BaseOperationIr
fn clone(&self) -> BaseOperationIr
Returns a duplicate of the value. Read more
1.0.0 · 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 BaseOperationIr
impl Debug for BaseOperationIr
Source§impl<'de> Deserialize<'de> for BaseOperationIr
impl<'de> Deserialize<'de> for BaseOperationIr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BaseOperationIr
impl Hash for BaseOperationIr
Source§impl PartialEq for BaseOperationIr
impl PartialEq for BaseOperationIr
Source§impl Serialize for BaseOperationIr
impl Serialize for BaseOperationIr
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 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
Mutably borrows from an owned value. Read more