pub struct InferenceStats {
pub total_inferences: u64,
pub total_batches: u64,
pub avg_batch_size: f64,
pub total_time_us: u64,
pub avg_time_per_sample_us: f64,
}Expand description
Inference statistics
Fields§
§total_inferences: u64Total inferences
total_batches: u64Total batches
avg_batch_size: f64Average batch size
total_time_us: u64Total inference time (microseconds)
avg_time_per_sample_us: f64Average inference time per sample (microseconds)
Implementations§
Trait 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