pub enum FusionPattern {
ElementWise(Vec<String>),
Reduction(String),
MatrixOp(String),
Custom(String, Vec<String>),
}Expand description
Fusion pattern for combining operations
Variants§
ElementWise(Vec<String>)
Element-wise operations (add, mul, relu, etc.)
Reduction(String)
Reduction operations (sum, mean, max, etc.)
MatrixOp(String)
Matrix operations (matmul, conv, etc.)
Custom(String, Vec<String>)
Custom fusion pattern
Trait Implementations§
Source§impl Clone for FusionPattern
impl Clone for FusionPattern
Source§fn clone(&self) -> FusionPattern
fn clone(&self) -> FusionPattern
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 FusionPattern
impl Debug for FusionPattern
Source§impl PartialEq for FusionPattern
impl PartialEq for FusionPattern
impl StructuralPartialEq for FusionPattern
Auto Trait Implementations§
impl Freeze for FusionPattern
impl RefUnwindSafe for FusionPattern
impl Send for FusionPattern
impl Sync for FusionPattern
impl Unpin for FusionPattern
impl UnwindSafe for FusionPattern
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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