Struct tfrecord::SummaryInit[][src]

pub struct SummaryInit<T> where
    T: ToString
{ pub tag: T, }

A Summary initializer.

Fields

tag: T

The tag of the summary.

Implementations

impl<T> SummaryInit<T> where
    T: ToString
[src]

pub fn new(tag: T) -> Self[src]

Create an initializer with a tag.

pub fn build_scalar(self, value: f32) -> Result<Summary, Error>[src]

Build a scalar summary.

pub fn build_histogram<H, E>(self, histogram: H) -> Result<Summary, Error> where
    H: TryInto<HistogramProto, Error = E>,
    Error: From<E>, 
[src]

Build a histogram summary.

pub fn build_tensor<S, E>(self, tensor: S) -> Result<Summary, Error> where
    S: TryInto<TensorProto, Error = E>,
    Error: From<E>, 
[src]

Build a tensor summary.

pub fn build_image<M, E>(self, image: M) -> Result<Summary, Error> where
    M: TryInto<Image, Error = E>,
    Error: From<E>, 
[src]

Build an image summary.

pub fn build_image_list<V, E>(self, images: V) -> Result<Summary, Error> where
    V: TryInfoImageList<Error = E>,
    Error: From<E>, 
[src]

Build a summary with multiple images.

pub fn build_audio<A, E>(self, audio: A) -> Result<Summary, Error> where
    A: TryInto<Audio, Error = E>,
    Error: From<E>, 
[src]

Build an audio summary.

Trait Implementations

impl<T: Clone> Clone for SummaryInit<T> where
    T: ToString
[src]

impl<T: Debug> Debug for SummaryInit<T> where
    T: ToString
[src]

impl<T: PartialEq> PartialEq<SummaryInit<T>> for SummaryInit<T> where
    T: ToString
[src]

impl<T> StructuralPartialEq for SummaryInit<T> where
    T: ToString
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SummaryInit<T> where
    T: RefUnwindSafe

impl<T> Send for SummaryInit<T> where
    T: Send

impl<T> Sync for SummaryInit<T> where
    T: Sync

impl<T> Unpin for SummaryInit<T> where
    T: Unpin

impl<T> UnwindSafe for SummaryInit<T> where
    T: UnwindSafe

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> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,