pub struct GraphProto {
pub node: Vec<NodeProto>,
pub name: String,
pub initializer: Vec<TensorProto>,
pub sparse_initializer: Vec<SparseTensorProto>,
pub doc_string: String,
pub input: Vec<ValueInfoProto>,
pub output: Vec<ValueInfoProto>,
pub value_info: Vec<ValueInfoProto>,
pub quantization_annotation: Vec<TensorAnnotation>,
}
Expand description
Graphs
A graph defines the computational logic of a model and is comprised of a parameterized list of nodes that form a directed acyclic graph based on their inputs and outputs. This is the equivalent of the “network” or “graph” in many deep learning frameworks.
Fields§
§node: Vec<NodeProto>
The nodes in the graph, sorted topologically.
name: String
The name of the graph.
namespace Graph
initializer: Vec<TensorProto>
A list of named tensor values, used to specify constant inputs of the graph. Each TensorProto entry must have a distinct name (within the list) that MAY also appear in the input list.
sparse_initializer: Vec<SparseTensorProto>
Initializers (see above) stored in sparse format.
doc_string: String
A human-readable documentation for this graph. Markdown is allowed.
input: Vec<ValueInfoProto>
The inputs and outputs of the graph.
output: Vec<ValueInfoProto>
§value_info: Vec<ValueInfoProto>
Information for the values in the graph. The ValueInfoProto.name’s must be distinct. It is optional for a value to appear in value_info list.
quantization_annotation: Vec<TensorAnnotation>
This field carries information to indicate the mapping among a tensor and its quantization parameter tensors. For example: For tensor ‘a’, it may have {‘SCALE_TENSOR’, ‘a_scale’} and {‘ZERO_POINT_TENSOR’, ‘a_zero_point’} annotated, which means, tensor ‘a_scale’ and tensor ‘a_zero_point’ are scale and zero point of tensor ‘a’ in the model.
Trait Implementations§
Source§impl Clone for GraphProto
impl Clone for GraphProto
Source§fn clone(&self) -> GraphProto
fn clone(&self) -> GraphProto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GraphProto
impl Debug for GraphProto
Source§impl Default for GraphProto
impl Default for GraphProto
Source§fn default() -> GraphProto
fn default() -> GraphProto
Source§impl From<GraphProto> for Attribute
impl From<GraphProto> for Attribute
Source§fn from(v: GraphProto) -> Self
fn from(v: GraphProto) -> Self
Source§impl Message for GraphProto
impl Message for GraphProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
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>
self
.