[−][src]Struct tract_onnx::pb::NodeProto
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.
Methods
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]
&self,
attr: &str,
cond: bool,
what: R
) -> TractResult<()>
pub fn expect_ok_or_else<T, R: Reason>(
&self,
result: Option<T>,
what: R
) -> TractResult<T>
[src]
&self,
result: Option<T>,
what: R
) -> TractResult<T>
pub fn get_attr_opt<'a, T>(&'a self, name: &str) -> TractResult<Option<T>> where
T: AttrScalarType<'a>,
[src]
T: AttrScalarType<'a>,
pub fn get_attr<'a, T>(&'a self, name: &str) -> TractResult<T> where
T: AttrScalarType<'a>,
[src]
T: AttrScalarType<'a>,
pub fn check_value<T, V: Debug>(
&self,
attr: &str,
value: Result<T, V>
) -> TractResult<T>
[src]
&self,
attr: &str,
value: Result<T, V>
) -> TractResult<T>
pub fn get_attr_opt_slice<'a, T>(
&'a self,
name: &str
) -> TractResult<Option<&'a [T]>> where
T: AttrSliceType<'a>,
[src]
&'a self,
name: &str
) -> TractResult<Option<&'a [T]>> where
T: AttrSliceType<'a>,
pub fn get_attr_slice<'a, T>(&'a self, name: &str) -> TractResult<&'a [T]> where
T: AttrSliceType<'a>,
[src]
T: AttrSliceType<'a>,
pub fn get_attr_opt_tvec<'a, T>(
&'a self,
name: &str
) -> TractResult<Option<TVec<T>>> where
T: AttrTVecType<'a>,
[src]
&'a self,
name: &str
) -> TractResult<Option<TVec<T>>> where
T: AttrTVecType<'a>,
pub fn get_attr_tvec<'a, T>(&'a self, name: &str) -> TractResult<TVec<T>> where
T: AttrTVecType<'a>,
[src]
T: AttrTVecType<'a>,
pub fn get_attr_opt_vec<'a, T>(
&'a self,
name: &str
) -> TractResult<Option<Vec<T>>> where
T: AttrTVecType<'a>,
[src]
&'a self,
name: &str
) -> TractResult<Option<Vec<T>>> where
T: AttrTVecType<'a>,
pub fn get_attr_vec<'a, T>(&'a self, name: &str) -> TractResult<Vec<T>> where
T: AttrTVecType<'a>,
[src]
T: AttrTVecType<'a>,
Trait Implementations
impl Clone for NodeProto
[src]
impl Debug for NodeProto
[src]
impl Default for NodeProto
[src]
impl Message for NodeProto
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(&mut self, buf: &mut B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: IntoBuf,
Self: Default,
[src]
B: IntoBuf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: IntoBuf,
Self: Default,
[src]
B: IntoBuf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: IntoBuf,
[src]
B: IntoBuf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: IntoBuf,
[src]
B: IntoBuf,
impl PartialEq<NodeProto> for NodeProto
[src]
impl StructuralPartialEq for NodeProto
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeProto
impl Send for NodeProto
impl Sync for NodeProto
impl Unpin for NodeProto
impl UnwindSafe for NodeProto
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,