[][src]Struct tensorflow_proto::tflite::evaluation::LatencyMetrics

pub struct LatencyMetrics {
    pub last_us: Option<i64>,
    pub max_us: Option<i64>,
    pub min_us: Option<i64>,
    pub sum_us: Option<i64>,
    pub avg_us: Option<f64>,
    pub std_deviation_us: Option<i64>,
}

Latency numbers in microseconds, based on all EvaluationStage::Run() calls so far.

Next ID: 7

Fields

last_us: Option<i64>

Latency for the last Run.

max_us: Option<i64>

Maximum latency observed for any Run.

min_us: Option<i64>

Minimum latency observed for any Run.

sum_us: Option<i64>

Sum of all Run latencies.

avg_us: Option<f64>

Average latency across all Runs.

std_deviation_us: Option<i64>

Standard deviation for latency across all Runs.

Implementations

impl LatencyMetrics[src]

pub fn last_us(&self) -> i64[src]

Returns the value of last_us, or the default value if last_us is unset.

pub fn max_us(&self) -> i64[src]

Returns the value of max_us, or the default value if max_us is unset.

pub fn min_us(&self) -> i64[src]

Returns the value of min_us, or the default value if min_us is unset.

pub fn sum_us(&self) -> i64[src]

Returns the value of sum_us, or the default value if sum_us is unset.

pub fn avg_us(&self) -> f64[src]

Returns the value of avg_us, or the default value if avg_us is unset.

pub fn std_deviation_us(&self) -> i64[src]

Returns the value of std_deviation_us, or the default value if std_deviation_us is unset.

Trait Implementations

impl Clone for LatencyMetrics[src]

impl Debug for LatencyMetrics[src]

impl Default for LatencyMetrics[src]

impl Message for LatencyMetrics[src]

impl PartialEq<LatencyMetrics> for LatencyMetrics[src]

impl StructuralPartialEq for LatencyMetrics[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.