pub struct CompileStats {
pub original_ops: usize,
pub optimized_ops: usize,
pub is_compiled: bool,
pub passes_applied: usize,
}Expand description
Compilation statistics.
Fields§
§original_ops: usizeNumber of operations in original graph
optimized_ops: usizeNumber of operations after optimization
is_compiled: boolWhether compilation succeeded
passes_applied: usizeNumber of optimization passes applied
Implementations§
Source§impl CompileStats
impl CompileStats
Sourcepub fn optimization_ratio(&self) -> f32
pub fn optimization_ratio(&self) -> f32
Returns the optimization ratio.
Trait Implementations§
Source§impl Clone for CompileStats
impl Clone for CompileStats
Source§fn clone(&self) -> CompileStats
fn clone(&self) -> CompileStats
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 CompileStats
impl RefUnwindSafe for CompileStats
impl Send for CompileStats
impl Sync for CompileStats
impl Unpin for CompileStats
impl UnwindSafe for CompileStats
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