package onnx

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AttributeProto

onnx-ml.proto:88

Attributes A named attribute containing either singular float, integer, string, graph, and tensor values, or repeated float, integer, string, graph, and tensor values. An AttributeProto MUST contain the name field, and *only one* of the following content fields, effectively enforcing a C/C++ union equivalent.

Used in: NodeProto

enum AttributeProto.AttributeType

onnx-ml.proto:92

Note: this enum is structurally identical to the OpSchema::AttrType enum defined in schema.h. If you rev one, you likely need to rev the other.

Used in: AttributeProto

message GraphProto

onnx-ml.proto:246

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.

Used in: AttributeProto, ModelProto

message ModelProto

onnx-ml.proto:187

Models ModelProto is a top-level file/container format for bundling a ML model and associating its computation graph with metadata. The semantics of the model are described by the associated GraphProto.

message NodeProto

onnx-ml.proto:161

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.

Used in: GraphProto

message OperatorSetIdProto

onnx-ml.proto:467

Operator Sets OperatorSets are uniquely identified by a (domain, opset_version) pair.

Used in: ModelProto

message StringStringEntryProto

onnx-ml.proto:235

StringStringEntryProto follows the pattern for cross-proto-version maps. See https://developers.google.com/protocol-buffers/docs/proto3#maps

Used in: ModelProto

message TensorProto

onnx-ml.proto:281

Tensors A serialized tensor value.

Used in: AttributeProto, GraphProto

enum TensorProto.DataType

onnx-ml.proto:282

Used in: TensorProto, TypeProto.Map, TypeProto.Tensor

message TensorProto.Segment

onnx-ml.proto:314

For very large tensors, we may want to store them in chunks, in which case the following fields will specify the segment that is stored in the current TensorProto.

Used in: TensorProto

message TensorShapeProto

onnx-ml.proto:393

Defines a tensor shape. A dimension can be either an integer value or a symbolic variable. A symbolic variable represents an unknown dimension.

Used in: TypeProto.Tensor

message TensorShapeProto.Dimension

onnx-ml.proto:394

Used in: TensorShapeProto

message TypeProto

onnx-ml.proto:412

Types The standard ONNX data types.

Used in: TypeProto.Map, TypeProto.Sequence, ValueInfoProto

message TypeProto.Map

onnx-ml.proto:430

map<K,V>

Used in: TypeProto

message TypeProto.Sequence

onnx-ml.proto:423

repeated T

Used in: TypeProto

message TypeProto.Tensor

onnx-ml.proto:414

Used in: TypeProto

message ValueInfoProto

onnx-ml.proto:145

Defines information on value, including the name, the type, and the shape of the value.

Used in: GraphProto

enum Version

onnx-ml.proto:59

Versioning ONNX versioning is specified in docs/IR.md and elaborated on in docs/Versioning.md To be compatible with both proto2 and proto3, we will use a version number that is not defined by the default value but an explicit enum number.