Struct tfrecord::summary::SummaryInit [−][src]
A Summary initializer.
Fields
tag: T
The tag of the summary.
Implementations
impl<T> SummaryInit<T> where
T: ToString,
[src]
T: ToString,
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]
H: TryInto<HistogramProto, Error = E>,
Error: From<E>,
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]
S: TryInto<TensorProto, Error = E>,
Error: From<E>,
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]
M: TryInto<Image, Error = E>,
Error: From<E>,
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]
V: TryInfoImageList<Error = E>,
Error: From<E>,
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]
A: TryInto<Audio, Error = E>,
Error: From<E>,
Build an audio summary.
Trait Implementations
impl<T: Clone> Clone for SummaryInit<T> where
T: ToString,
[src]
T: ToString,
fn clone(&self) -> SummaryInit<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for SummaryInit<T> where
T: ToString,
[src]
T: ToString,
impl<T: PartialEq> PartialEq<SummaryInit<T>> for SummaryInit<T> where
T: ToString,
[src]
T: ToString,
fn eq(&self, other: &SummaryInit<T>) -> bool
[src]
fn ne(&self, other: &SummaryInit<T>) -> bool
[src]
impl<T> StructuralPartialEq for SummaryInit<T> where
T: ToString,
[src]
T: ToString,
Auto Trait Implementations
impl<T> RefUnwindSafe for SummaryInit<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for SummaryInit<T> where
T: Send,
T: Send,
impl<T> Sync for SummaryInit<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SummaryInit<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for SummaryInit<T> where
T: UnwindSafe,
T: UnwindSafe,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,