[][src]Struct tfrecord::protos::TensorShapeProto

pub struct TensorShapeProto {
    pub dim: Vec<Dim>,
    pub unknown_rank: bool,
}

Dimensions of a tensor.

Fields

dim: Vec<Dim>

Dimensions of the tensor, such as {"input", 30}, {"output", 40} for a 30 x 40 2D tensor. If an entry has size -1, this corresponds to a dimension of unknown size. The names are optional.

The order of entries in "dim" matters: It indicates the layout of the values in the tensor in-memory representation.

The first entry in "dim" is the outermost dimension used to layout the values, the last entry is the innermost dimension. This matches the in-memory layout of RowMajor Eigen tensors.

If "dim.size()" > 0, "unknown_rank" must be false.

unknown_rank: bool

If true, the number of dimensions in the shape is unknown.

If true, "dim.size()" must be 0.

Trait Implementations

impl Clone for TensorShapeProto[src]

impl Debug for TensorShapeProto[src]

impl Default for TensorShapeProto[src]

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

impl Message for TensorShapeProto[src]

impl PartialEq<TensorShapeProto> for TensorShapeProto[src]

impl Serialize for TensorShapeProto[src]

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