pub struct NodeProto {
pub input: Vec<String>,
pub output: Vec<String>,
pub name: String,
pub op_type: String,
pub domain: String,
pub overload: String,
pub attribute: Vec<AttributeProto>,
pub doc_string: String,
pub metadata_props: Vec<StringStringEntryProto>,
pub device_configurations: Vec<NodeDeviceConfigurationProto>,
}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: StringAn optional identifier for this node in a graph. This field MAY be absent in this version of the IR.
namespace Node
op_type: StringThe symbolic identifier of the Operator to execute.
namespace Operator
domain: StringThe domain of the OperatorSet that specifies the operator named by op_type.
namespace Domain
overload: StringOverload identifier, used only to map this to a model-local function.
attribute: Vec<AttributeProto>Additional named attributes.
doc_string: StringA human-readable documentation for this node. Markdown is allowed.
metadata_props: Vec<StringStringEntryProto>Named metadata values; keys should be distinct.
device_configurations: Vec<NodeDeviceConfigurationProto>Configuration of multi-device annotations.
Trait Implementations§
Source§impl Message for NodeProto
impl Message for NodeProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.