pub struct ContractionOptStats {
pub contractions_reordered: usize,
pub flops_reduction_percent: f64,
pub memory_reduction_percent: f64,
pub intermediates_saved: usize,
pub total_processed: usize,
}Expand description
Statistics from contraction optimization.
Fields§
§contractions_reordered: usizeNumber of contractions reordered
flops_reduction_percent: f64Estimated FLOP reduction (percentage)
memory_reduction_percent: f64Estimated memory reduction (percentage)
intermediates_saved: usizeNumber of intermediate tensors saved
total_processed: usizeTotal number of nodes processed
Implementations§
Source§impl ContractionOptStats
impl ContractionOptStats
Sourcepub fn total_optimizations(&self) -> usize
pub fn total_optimizations(&self) -> usize
Get total number of optimizations applied.
Trait Implementations§
Source§impl Clone for ContractionOptStats
impl Clone for ContractionOptStats
Source§fn clone(&self) -> ContractionOptStats
fn clone(&self) -> ContractionOptStats
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 moreSource§impl Debug for ContractionOptStats
impl Debug for ContractionOptStats
Source§impl Default for ContractionOptStats
impl Default for ContractionOptStats
Source§fn default() -> ContractionOptStats
fn default() -> ContractionOptStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContractionOptStats
impl RefUnwindSafe for ContractionOptStats
impl Send for ContractionOptStats
impl Sync for ContractionOptStats
impl Unpin for ContractionOptStats
impl UnwindSafe for ContractionOptStats
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