Skip to main content

Module proto

Module proto 

Source
Expand description

ONNX protobuf decoding (§19.1).

The onnx submodule contains the prost-generated types compiled from the vendored proto/onnx.proto3 (see build.rs). decode_model parses a serialized ModelProto from bytes.

Re-exports§

pub use onnx::ModelProto;

Modules§

onnx
The prost-generated ONNX protobuf types (package onnx).

Constants§

FILE_DESCRIPTOR_SET
Encoded FileDescriptorSet for the exact vendored ONNX schema used to generate onnx. Textual codecs use this descriptor so every present and future field in the bound proto is handled from one source of truth.

Functions§

decode_model
Decode a ModelProto from serialized protobuf bytes.
textproto_to_binary
Convert an ONNX protobuf TextFormat (.textproto) document into the binary protobuf wire encoding of a ModelProto.