[][src]Enum tfrecord::protos::DataClass

#[repr(i32)]pub enum DataClass {
    Unknown,
    Scalar,
    Tensor,
    BlobSequence,
}

Variants

Unknown

Unknown data class, used (implicitly) for legacy data. Will not be processed by data ingestion pipelines.

Scalar

Scalar time series. Each Value for the corresponding tag must have tensor set to a rank-0 tensor of floating-point dtype, which will be converted to float64.

Tensor

Tensor time series. Each Value for the corresponding tag must have tensor set. The tensor value is arbitrary, but should be small to accommodate direct storage in database backends: an upper bound of a few kilobytes is a reasonable rule of thumb.

BlobSequence

Blob sequence time series. Each Value for the corresponding tag must have tensor set to a rank-1 tensor of bytestring dtype.

Implementations

impl DataClass[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of DataClass.

pub fn from_i32(value: i32) -> Option<DataClass>[src]

Converts an i32 to a DataClass, or None if value is not a valid variant.

Trait Implementations

impl Clone for DataClass[src]

impl Copy for DataClass[src]

impl Debug for DataClass[src]

impl Default for DataClass[src]

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

impl Eq for DataClass[src]

impl From<DataClass> for i32[src]

impl Hash for DataClass[src]

impl Ord for DataClass[src]

impl PartialEq<DataClass> for DataClass[src]

impl PartialOrd<DataClass> for DataClass[src]

impl Serialize for DataClass[src]

impl StructuralEq for DataClass[src]

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