Skip to main content

Crate onnx_export_rs

Crate onnx_export_rs 

Source
Expand description

ONNX export for inference-only canonical machine-learning models.

The crate deliberately separates source-library adapters from canonical representations and ONNX graph generation. Values are narrowed to f32 when exported for maximum runtime compatibility.

Re-exports§

pub use error::Error;
pub use error::Result;
pub use graph_builder::save_to_file;
pub use graph_builder::to_bytes;

Modules§

adapters
Adapters from fitted models in supported training libraries.
canonical
Source-library-independent inference representations.
error
Error types.
exporters
Canonical model to ONNX exporters.
graph_builder
Low-level ONNX graph construction and serialization.
proto
Minimal public ONNX protobuf bindings needed by the exporters.

Constants§

IR_VERSION
ONNX intermediate-representation version emitted by this crate.
ML_OPSET_VERSION
ONNX-ML operator-set version used by tree exporters.
OPSET_VERSION
Default ONNX operator-set version emitted by this crate.