pub struct ProjectionFusion { /* private fields */ }Expand description
CPU-only gate/up MatMulNBits fusion.
The environment gate is captured once when the pass is constructed, so a session’s optimization policy cannot change midway through graph rewriting.
Implementations§
Trait Implementations§
Source§impl Default for ProjectionFusion
impl Default for ProjectionFusion
Source§impl OptimizationPass for ProjectionFusion
impl OptimizationPass for ProjectionFusion
Source§fn run(&self, graph: &mut Graph, ctx: &PassContext) -> OptimizerResult<()>
fn run(&self, graph: &mut Graph, ctx: &PassContext) -> OptimizerResult<()>
Apply the rewrite in place.
Source§fn postconditions(&self, graph: &Graph) -> Result<(), OptimizerError>
fn postconditions(&self, graph: &Graph) -> Result<(), OptimizerError>
Invariants that must hold after this pass. The default requires the
graph to pass full structural validation (
Graph::validate).Auto Trait Implementations§
impl Freeze for ProjectionFusion
impl RefUnwindSafe for ProjectionFusion
impl Send for ProjectionFusion
impl Sync for ProjectionFusion
impl Unpin for ProjectionFusion
impl UnsafeUnpin for ProjectionFusion
impl UnwindSafe for ProjectionFusion
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> 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