pub struct OptimizationResult {
pub optimized_graph: ComputationGraph,
pub original_operations: usize,
pub optimized_operations: usize,
pub fused_operations: usize,
pub compute_improvement: f64,
pub memory_improvement: f64,
pub estimated_speedup: f64,
pub optimization_time_ms: u64,
pub applied_passes: Vec<String>,
pub fusion_patterns: Vec<String>,
}Expand description
Result of graph optimization process
Fields§
§optimized_graph: ComputationGraphThe optimized computation graph
original_operations: usizeNumber of operations in original graph
optimized_operations: usizeNumber of operations after optimization
fused_operations: usizeNumber of operations that were fused
compute_improvement: f64Compute cost improvement (0.0 to 1.0)
memory_improvement: f64Memory cost improvement (0.0 to 1.0)
estimated_speedup: f64Estimated overall speedup
optimization_time_ms: u64Time spent on optimization in milliseconds
applied_passes: Vec<String>List of applied optimization passes
fusion_patterns: Vec<String>List of applied fusion patterns
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptimizationResult
impl RefUnwindSafe for OptimizationResult
impl Send for OptimizationResult
impl Sync for OptimizationResult
impl Unpin for OptimizationResult
impl UnsafeUnpin for OptimizationResult
impl UnwindSafe for OptimizationResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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