[][src]Struct tract_tensorflow::tfpb::tensorflow::FunctionDef

pub struct FunctionDef {
    pub signature: Option<OpDef>,
    pub attr: HashMap<String, AttrValue>,
    pub node_def: Vec<NodeDef>,
    pub ret: HashMap<String, String>,
}

A function can be instantiated when the runtime can bind every attr with a value. When a GraphDef has a call to a function, it must have binding for every attr defined in the signature.

TODO(zhifengc):

  • device spec, etc.

Fields

signature: Option<OpDef>

The definition of the function's name, arguments, return values, attrs etc.

attr: HashMap<String, AttrValue>

Attributes specific to this function definition.

node_def: Vec<NodeDef>

By convention, "op" in node_def is resolved by consulting with a user-defined library first. If not resolved, "func" is assumed to be a builtin op.

ret: HashMap<String, String>

A mapping from the output arg names from signature to the outputs from node_def that should be returned by the function.

Trait Implementations

impl Clone for FunctionDef[src]

impl Debug for FunctionDef[src]

impl Default for FunctionDef[src]

impl Message for FunctionDef[src]

impl PartialEq<FunctionDef> for FunctionDef[src]

impl StructuralPartialEq for FunctionDef[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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> DynClone for T where
    T: Clone
[src]

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.