[−][src]Struct tfrecord::protos::HistogramProto
Serialization format for histogram module in core/lib/histogram/histogram.h
Fields
min: f64
max: f64
num: f64
sum: f64
sum_squares: f64
bucket_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]
fn clone(&self) -> HistogramProto
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HistogramProto
[src]
impl Default for HistogramProto
[src]
fn default() -> HistogramProto
[src]
impl<'de> Deserialize<'de> for HistogramProto
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'_, T> From<&'_ [T]> for HistogramProto where
T: HistogramProtoElement,
[src]
T: HistogramProtoElement,
impl<'_, T> From<&'_ Vec<T>> for HistogramProto where
T: HistogramProtoElement,
[src]
T: HistogramProtoElement,
impl From<Histogram> for HistogramProto
[src]
impl<T> From<Vec<T>> for HistogramProto where
T: HistogramProtoElement,
[src]
T: HistogramProtoElement,
impl Message for HistogramProto
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<HistogramProto> for HistogramProto
[src]
fn eq(&self, other: &HistogramProto) -> bool
[src]
fn ne(&self, other: &HistogramProto) -> bool
[src]
impl Serialize for HistogramProto
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for HistogramProto
[src]
impl<'_, S, D> TryFrom<&'_ ArrayBase<S, D>> for HistogramProto where
S: RawData<Elem = f64> + Data,
D: Dimension,
[src]
S: RawData<Elem = f64> + Data,
D: Dimension,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: &ArrayBase<S, D>) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ DynamicImage> for HistogramProto
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: &DynamicImage) -> Result<Self, Self::Error>
[src]
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]
P: 'static + Pixel,
P::Subpixel: 'static,
C: Deref<Target = [P::Subpixel]>,
P::Subpixel: HistogramProtoElement,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: &ImageBuffer<P, C>) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ Tensor> for HistogramProto
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: &Tensor) -> Result<Self, Self::Error>
[src]
impl<S, D> TryFrom<ArrayBase<S, D>> for HistogramProto where
S: RawData<Elem = f64> + Data,
D: Dimension,
[src]
S: RawData<Elem = f64> + Data,
D: Dimension,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: ArrayBase<S, D>) -> Result<Self, Self::Error>
[src]
impl TryFrom<DynamicImage> for HistogramProto
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: DynamicImage) -> Result<Self, Self::Error>
[src]
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]
P: 'static + Pixel,
P::Subpixel: 'static,
C: Deref<Target = [P::Subpixel]>,
P::Subpixel: HistogramProtoElement,
type Error = Error
The type returned in the event of a conversion error.
fn try_from(from: ImageBuffer<P, C>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Tensor> for HistogramProto
[src]
Auto Trait Implementations
impl RefUnwindSafe for HistogramProto
impl Send for HistogramProto
impl Sync for HistogramProto
impl Unpin for HistogramProto
impl UnwindSafe for HistogramProto
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,