Struct tfrecord::protos::tensor_shape_proto::Dim[][src]

pub struct Dim {
    pub size: i64,
    pub name: String,
}

One dimension of the tensor.

Fields

size: i64

Size of the tensor in that dimension. This value must be >= -1, but values of -1 are reserved for “unknown” shapes (values of -1 mean “unknown” dimension). Certain wrappers that work with TensorShapeProto may fail at runtime when deserializing a TensorShapeProto containing a dim value of -1.

name: String

Optional name of the tensor dimension.

Trait Implementations

impl Clone for Dim[src]

impl Debug for Dim[src]

impl Default for Dim[src]

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

impl Message for Dim[src]

impl PartialEq<Dim> for Dim[src]

impl Serialize for Dim[src]

impl StructuralPartialEq for Dim[src]

Auto Trait Implementations

impl RefUnwindSafe for Dim

impl Send for Dim

impl Sync for Dim

impl Unpin for Dim

impl UnwindSafe for Dim

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> 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>,