[][src]Struct tfrecord::protos::HistogramProto

pub struct HistogramProto {
    pub min: f64,
    pub max: f64,
    pub num: f64,
    pub sum: f64,
    pub sum_squares: f64,
    pub bucket_limit: Vec<f64>,
    pub bucket: Vec<f64>,
}

Serialization format for histogram module in core/lib/histogram/histogram.h

Fields

min: f64max: f64num: f64sum: f64sum_squares: f64bucket_limit: Vec<f64>

Parallel arrays encoding the bucket boundaries and the bucket values. bucket(i) is the count for the bucket i. The range for a bucket is: i == 0: -DBL_MAX .. bucket_limit(0) i != 0: bucket_limit(i-1) .. bucket_limit(i)

bucket: Vec<f64>

Trait Implementations

impl Clone for HistogramProto[src]

impl Debug for HistogramProto[src]

impl Default for HistogramProto[src]

impl<'de> Deserialize<'de> for HistogramProto[src]

impl<'_, T> From<&'_ [T]> for HistogramProto where
    T: HistogramProtoElement
[src]

impl<'_, T> From<&'_ Vec<T>> for HistogramProto where
    T: HistogramProtoElement
[src]

impl From<Histogram> for HistogramProto[src]

impl<T> From<Vec<T>> for HistogramProto where
    T: HistogramProtoElement
[src]

impl Message for HistogramProto[src]

impl PartialEq<HistogramProto> for HistogramProto[src]

impl Serialize for HistogramProto[src]

impl StructuralPartialEq for HistogramProto[src]

impl<'_, S, D> TryFrom<&'_ ArrayBase<S, D>> for HistogramProto where
    S: RawData<Elem = f64> + Data,
    D: Dimension
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ DynamicImage> for HistogramProto[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_, P, C> TryFrom<&'_ ImageBuffer<P, C>> for HistogramProto where
    P: 'static + Pixel,
    P::Subpixel: 'static,
    C: Deref<Target = [P::Subpixel]>,
    P::Subpixel: HistogramProtoElement
[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Tensor> for HistogramProto[src]

type Error = Error

The type returned in the event of a conversion error.

impl<S, D> TryFrom<ArrayBase<S, D>> for HistogramProto where
    S: RawData<Elem = f64> + Data,
    D: Dimension
[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<DynamicImage> for HistogramProto[src]

type Error = Error

The type returned in the event of a conversion error.

impl<P, C> TryFrom<ImageBuffer<P, C>> for HistogramProto where
    P: 'static + Pixel,
    P::Subpixel: 'static,
    C: Deref<Target = [P::Subpixel]>,
    P::Subpixel: HistogramProtoElement
[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Tensor> for HistogramProto[src]

type Error = Error

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> SetParameter for T

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.