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 (packageonnx).
Constants§
- FILE_
DESCRIPTOR_ SET - Encoded
FileDescriptorSetfor the exact vendored ONNX schema used to generateonnx. 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
ModelProtofrom serialized protobuf bytes. - textproto_
to_ binary - Convert an ONNX protobuf TextFormat (
.textproto) document into the binary protobuf wire encoding of aModelProto.