pub struct FusionEngine { /* private fields */ }Expand description
Operation fusion engine
Implementations§
Source§impl FusionEngine
impl FusionEngine
Sourcepub fn new() -> FusionEngine
pub fn new() -> FusionEngine
Create a new fusion engine with all patterns enabled
Sourcepub fn optimize(&self, graph: ComputeGraph) -> ComputeGraph
pub fn optimize(&self, graph: ComputeGraph) -> ComputeGraph
Optimize a compute graph by fusing operations
Trait Implementations§
Source§impl Default for FusionEngine
impl Default for FusionEngine
Source§fn default() -> FusionEngine
fn default() -> FusionEngine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FusionEngine
impl RefUnwindSafe for FusionEngine
impl Send for FusionEngine
impl Sync for FusionEngine
impl Unpin for FusionEngine
impl UnwindSafe for FusionEngine
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> 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