package onnx

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

message AttributeProto

onnx.proto:63

A named attribute containing either singular float, integer, string and tensor values, or repeated float, integer, string 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

message GraphProto

onnx.proto:145

GraphProto defines a parameterized series of nodes to form a directed acyclic graph. This is the equivalent of the "network" and "graph" in many deep learning frameworks.

Used in: AttributeProto, ModelProto

message ModelProto

onnx.proto:109

ModelProto is a top-level file/container format for bundling a ML model. The semantics of the model are described by the GraphProto that represents a parameterized computation graph against a set of named operators that are defined independently from the graph.

message NodeProto

onnx.proto:92

NodeProto stores a node that is similar to the notion of "layer" or "operator" in many deep 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 SparseTensorProto

onnx.proto:292

A sparse tensor must be stored as three dense tensors: 1. dims: The shape of the original dense tensor. 2. indices: A 2-D tensor specifying the indices of the nonzero elements. 3. values: A 1-D tensor containing the values of the nonzero elements.

message TensorProto

onnx.proto:182

A message defined to store a tensor in its serialized format.

Used in: AttributeProto, GraphProto, SparseTensorProto

enum TensorProto.DataType

onnx.proto:183

Used in: TensorProto, TypeProto.SparseTensorTypeProto, TypeProto.TensorTypeProto

message TensorProto.Segment

onnx.proto:215

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 TypeProto

onnx.proto:302

Define the types.

Used in: ValueInfoProto

message TypeProto.SparseTensorTypeProto

onnx.proto:323

Used in: TypeProto

message TypeProto.TensorShapeProto

onnx.proto:306

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: SparseTensorTypeProto, TensorTypeProto

message TypeProto.TensorShapeProto.Dimension

onnx.proto:307

Used in: TensorShapeProto

message TypeProto.TensorTypeProto

onnx.proto:316

Used in: TypeProto

message ValueInfoProto

onnx.proto:81

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

Used in: GraphProto

enum Version

onnx.proto:50

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.