pub enum FusionPattern {
MatMulBias,
MatMulActivation,
BiasActivation,
BatchNormReLU,
ConvBNReLU,
ElementwiseChain,
ReduceElementwise,
ParallelReductions,
BroadcastElementwise,
}Expand description
Fusion pattern types.
Variants§
MatMulBias
Matrix multiplication followed by bias addition
MatMulActivation
Matrix multiplication followed by activation (ReLU, tanh, etc.)
BiasActivation
Bias addition followed by activation
BatchNormReLU
BatchNorm + ReLU fusion
ConvBNReLU
Conv + BatchNorm + ReLU
ElementwiseChain
Elementwise operations chain
ReduceElementwise
Reduction followed by elementwise
ParallelReductions
Multiple independent reductions (horizontal fusion)
BroadcastElementwise
Broadcast followed by elementwise
Trait Implementations§
Source§impl Clone for FusionPattern
impl Clone for FusionPattern
impl Copy for FusionPattern
Source§impl Debug for FusionPattern
impl Debug for FusionPattern
Source§impl<'de> Deserialize<'de> for FusionPattern
impl<'de> Deserialize<'de> for FusionPattern
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
impl Eq for FusionPattern
Source§impl Hash for FusionPattern
impl Hash for FusionPattern
Source§impl PartialEq for FusionPattern
impl PartialEq for FusionPattern
Source§impl Serialize for FusionPattern
impl Serialize 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 UnsafeUnpin 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
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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