[][src]Struct tensorflow::AttrMetadata

pub struct AttrMetadata {
    pub list_size: Option<i64>,
    pub attr_type: AttrType,
    pub total_size: i64,
}

AttrMetadata describes the value of an attribute on an operation.

Fields

list_size: Option<i64>

Length of the list, or None if the attribute is not a list.

attr_type: AttrType

Type of elements of the list if the attribute is a list. Type of the single value stored in the attribute if not a list.

total_size: i64

Total size the attribute value. The units of total_size depend on list_size and attr_type.

  1. If attr_type == AttrType::String and list_size == None then total_size is the byte size of the string valued attribute.
  2. If attr_type == AttrType::String and list_size == Some(_) then total_size is the cumulative byte size of all the strings in the list.
  3. If attr_type == AttrType::Shape and list_size == None then total_size is the number of dimensions of the shape valued attribute, or -1 if its rank is unknown.
  4. If attr_type == AttrType::SHAPE and list_size == Some(_) then total_size is the cumulative number of dimensions of all shapes in the list.
  5. Otherwise, total_size is undefined.

Trait Implementations

impl Clone for AttrMetadata[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for AttrMetadata[src]

impl Debug for AttrMetadata[src]

Auto Trait Implementations

impl Send for AttrMetadata

impl Sync for AttrMetadata

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]