Struct tfrecord::protos::api_def::Attr[][src]

pub struct Attr {
    pub name: String,
    pub rename_to: String,
    pub default_value: Option<AttrValue>,
    pub description: String,
}

Description of the graph-construction-time configuration of this Op. That is to say, this describes the attr fields that will be specified in the NodeDef.

Fields

name: Stringrename_to: String

Change the name used to access this attr in the API from what is used in the GraphDef. Note that these names in backticks will also be replaced in the summary & description fields.

default_value: Option<AttrValue>

Specify a new default value to use for this attr. This default will be used when creating new graphs, as opposed to the default in the OpDef, which will be used when interpreting old GraphDefs.

description: String

Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions.

Trait Implementations

impl Clone for Attr[src]

impl Debug for Attr[src]

impl Default for Attr[src]

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

impl Message for Attr[src]

impl PartialEq<Attr> for Attr[src]

impl Serialize for Attr[src]

impl StructuralPartialEq for Attr[src]

Auto Trait Implementations

impl RefUnwindSafe for Attr

impl Send for Attr

impl Sync for Attr

impl Unpin for Attr

impl UnwindSafe for Attr

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