[][src]Struct tract_onnx::pb::NodeProto

pub struct NodeProto {
    pub input: Vec<String>,
    pub output: Vec<String>,
    pub name: String,
    pub op_type: String,
    pub domain: String,
    pub attribute: Vec<AttributeProto>,
    pub doc_string: String,
}

Nodes

Computation graphs are made up of a DAG of nodes, which represent what is commonly called a "layer" or "pipeline stage" in machine learning frameworks.

For example, it can be a node of type "Conv" that takes in an image, a filter tensor and a bias tensor, and produces the convolved output.

Fields

input: Vec<String>

namespace Value

output: Vec<String>

namespace Value

name: String

An optional identifier for this node in a graph. This field MAY be absent in ths version of the IR.

namespace Node

op_type: String

The symbolic identifier of the Operator to execute.

namespace Operator

domain: String

The domain of the OperatorSet that specifies the operator named by op_type.

namespace Domain

attribute: Vec<AttributeProto>

Additional named attributes.

doc_string: String

A human-readable documentation for this node. Markdown is allowed.

Implementations

impl NodeProto[src]

pub fn bail<T>(&self, msg: &str) -> TractResult<T>[src]

pub fn bail_attr<T>(&self, attr: &str, msg: &str) -> TractResult<T>[src]

pub fn expect<R: Reason>(&self, cond: bool, what: R) -> TractResult<()>[src]

pub fn expect_attr<R: Reason>(
    &self,
    attr: &str,
    cond: bool,
    what: R
) -> TractResult<()>
[src]

pub fn expect_ok_or_else<T, R: Reason>(
    &self,
    result: Option<T>,
    what: R
) -> TractResult<T>
[src]

pub fn get_attr_opt<'a, T>(&'a self, name: &str) -> TractResult<Option<T>> where
    T: AttrScalarType<'a>, 
[src]

pub fn get_attr<'a, T>(&'a self, name: &str) -> TractResult<T> where
    T: AttrScalarType<'a>, 
[src]

pub fn check_value<T, V: Debug>(
    &self,
    attr: &str,
    value: Result<T, V>
) -> TractResult<T>
[src]

pub fn get_attr_opt_slice<'a, T>(
    &'a self,
    name: &str
) -> TractResult<Option<&'a [T]>> where
    T: AttrSliceType<'a>, 
[src]

pub fn get_attr_slice<'a, T>(&'a self, name: &str) -> TractResult<&'a [T]> where
    T: AttrSliceType<'a>, 
[src]

pub fn get_attr_opt_tvec<'a, T>(
    &'a self,
    name: &str
) -> TractResult<Option<TVec<T>>> where
    T: AttrTVecType<'a>, 
[src]

pub fn get_attr_tvec<'a, T>(&'a self, name: &str) -> TractResult<TVec<T>> where
    T: AttrTVecType<'a>, 
[src]

pub fn get_attr_opt_vec<'a, T>(
    &'a self,
    name: &str
) -> TractResult<Option<Vec<T>>> where
    T: AttrTVecType<'a>, 
[src]

pub fn get_attr_vec<'a, T>(&'a self, name: &str) -> TractResult<Vec<T>> where
    T: AttrTVecType<'a>, 
[src]

Trait Implementations

impl Clone for NodeProto[src]

impl Debug for NodeProto[src]

impl Default for NodeProto[src]

impl Message for NodeProto[src]

impl PartialEq<NodeProto> for NodeProto[src]

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