pub struct ProfileGuidedOptimizer { /* private fields */ }Expand description
Profile-guided optimizer.
Implementations§
Source§impl ProfileGuidedOptimizer
impl ProfileGuidedOptimizer
pub fn new(profile: ExecutionProfile) -> Self
Sourcepub fn with_hot_threshold(self, threshold: u64) -> Self
pub fn with_hot_threshold(self, threshold: u64) -> Self
Set hotness threshold
Sourcepub fn with_memory_threshold(self, threshold: u64) -> Self
pub fn with_memory_threshold(self, threshold: u64) -> Self
Set memory threshold
Sourcepub fn analyze(&self, graph: &EinsumGraph) -> Vec<OptimizationHint>
pub fn analyze(&self, graph: &EinsumGraph) -> Vec<OptimizationHint>
Analyze graph and generate optimization hints
Sourcepub fn apply_hints(
&self,
graph: &mut EinsumGraph,
hints: &[OptimizationHint],
) -> Result<usize, IrError>
pub fn apply_hints( &self, graph: &mut EinsumGraph, hints: &[OptimizationHint], ) -> Result<usize, IrError>
Apply optimization hints to a graph
Sourcepub fn profile(&self) -> &ExecutionProfile
pub fn profile(&self) -> &ExecutionProfile
Get profile reference
Trait Implementations§
Source§impl Clone for ProfileGuidedOptimizer
impl Clone for ProfileGuidedOptimizer
Source§fn clone(&self) -> ProfileGuidedOptimizer
fn clone(&self) -> ProfileGuidedOptimizer
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 moreAuto Trait Implementations§
impl Freeze for ProfileGuidedOptimizer
impl RefUnwindSafe for ProfileGuidedOptimizer
impl Send for ProfileGuidedOptimizer
impl Sync for ProfileGuidedOptimizer
impl Unpin for ProfileGuidedOptimizer
impl UnwindSafe for ProfileGuidedOptimizer
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