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,
}
Expand description
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.
Trait Implementations§
Source§impl Message for NodeProto
impl Message for NodeProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for NodeProto
Auto Trait Implementations§
impl Freeze for NodeProto
impl RefUnwindSafe for NodeProto
impl Send for NodeProto
impl Sync for NodeProto
impl Unpin for NodeProto
impl UnwindSafe for NodeProto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more