pub struct KernelStats {
pub executions: u64,
pub cache_hits: u64,
pub avg_sparsity: f32,
pub compute_saved: f64,
}Expand description
Kernel statistics
Fields§
§executions: u64Total executions
cache_hits: u64Cache hits
avg_sparsity: f32Average sparsity
compute_saved: f64Total compute saved (estimated GFLOPs)
Trait Implementations§
Source§impl Clone for KernelStats
impl Clone for KernelStats
Source§fn clone(&self) -> KernelStats
fn clone(&self) -> KernelStats
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 KernelStats
impl Debug for KernelStats
Source§impl Default for KernelStats
impl Default for KernelStats
Source§fn default() -> KernelStats
fn default() -> KernelStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KernelStats
impl<'de> Deserialize<'de> for KernelStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KernelStats
impl RefUnwindSafe for KernelStats
impl Send for KernelStats
impl Sync for KernelStats
impl Unpin for KernelStats
impl UnsafeUnpin for KernelStats
impl UnwindSafe for KernelStats
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