pub struct InferenceStats {
pub latency_ms: f64,
pub memory_bytes: usize,
pub flops: usize,
}Expand description
Statistics from a forward pass.
Fields§
§latency_ms: f64§memory_bytes: usize§flops: usizeTrait Implementations§
Source§impl Clone for InferenceStats
impl Clone for InferenceStats
Source§fn clone(&self) -> InferenceStats
fn clone(&self) -> InferenceStats
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 InferenceStats
impl Debug for InferenceStats
Source§impl Default for InferenceStats
impl Default for InferenceStats
Source§fn default() -> InferenceStats
fn default() -> InferenceStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InferenceStats
impl RefUnwindSafe for InferenceStats
impl Send for InferenceStats
impl Sync for InferenceStats
impl Unpin for InferenceStats
impl UnsafeUnpin for InferenceStats
impl UnwindSafe for InferenceStats
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