[][src]Struct tensorflow_proto::tensorflow::profiler::op_profile::Metrics

pub struct Metrics {
    pub time: f64,
    pub flops: f64,
    pub memory_bandwidth: f64,
    pub raw_time: f64,
    pub raw_flops: f64,
    pub raw_bytes_accessed: f64,
}

Measurements of an operation (or aggregated set of operations). Metrics are always "total" rather than "self".

Fields

time: f64

Core-time taken by this operation, as a fraction of all operations.

flops: f64

Floating point computations performed by this operation, as a fraction of peak core FLOPS * program time. This representation has useful properties:

  • it is proportional to the number of floating point operations performed
  • utilization is flops/time
  • wasted potential flops is proportional to time - flops
  • it does not reveal the peak core FLOPS of the hardware
memory_bandwidth: f64

The memory bandwidth used to load operands, as a fraction of thereotical memory bandwidth on the specific hardware.

raw_time: f64

Elapsed core-time in picoseconds.

raw_flops: f64

Total floating-point operations performed.

raw_bytes_accessed: f64

Total bytes accessed (include read/write).

Trait Implementations

impl Clone for Metrics[src]

impl Debug for Metrics[src]

impl Default for Metrics[src]

impl Message for Metrics[src]

impl PartialEq<Metrics> for Metrics[src]

impl StructuralPartialEq for Metrics[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.