pub struct FusionPlanner { /* private fields */ }Expand description
Plans elementwise kernel fusion over an operation DAG.
Implementations§
Source§impl FusionPlanner
impl FusionPlanner
Sourcepub fn with_broadcast(self, allow_broadcast: bool) -> Self
pub fn with_broadcast(self, allow_broadcast: bool) -> Self
Enables or disables broadcast compatibility on fusible edges. When disabled, a producer -> consumer edge only fuses if the shapes are equal.
Sourcepub fn plan(&self, graph: &FusionGraph) -> Result<FusionPlan, GpuOptimError>
pub fn plan(&self, graph: &FusionGraph) -> Result<FusionPlan, GpuOptimError>
Plans fusion for graph and returns the groups plus the cost summary.
Returns an error if the graph fails FusionGraph::validate or if any
tensor byte count overflows.
Trait Implementations§
Source§impl Clone for FusionPlanner
impl Clone for FusionPlanner
Source§fn clone(&self) -> FusionPlanner
fn clone(&self) -> FusionPlanner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FusionPlanner
impl Debug for FusionPlanner
Auto Trait Implementations§
impl Freeze for FusionPlanner
impl RefUnwindSafe for FusionPlanner
impl Send for FusionPlanner
impl Sync for FusionPlanner
impl Unpin for FusionPlanner
impl UnsafeUnpin for FusionPlanner
impl UnwindSafe for FusionPlanner
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,
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