[−][src]Struct tensorflow::AttrMetadata
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.
- If attr_type == AttrType::String and list_size == None then total_size is the byte size of the string valued attribute.
- If attr_type == AttrType::String and list_size == Some(_) then total_size is the cumulative byte size of all the strings in the list.
- 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.
- If attr_type == AttrType::SHAPE and list_size == Some(_) then total_size is the cumulative number of dimensions of all shapes in the list.
- Otherwise, total_size is undefined.
Trait Implementations
impl Copy for AttrMetadata
[src]
impl Clone for AttrMetadata
[src]
fn clone(&self) -> AttrMetadata
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for AttrMetadata
[src]
Auto Trait Implementations
impl Send for AttrMetadata
impl Sync for AttrMetadata
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,