onnx-export-rs 0.1.1

Export canonical Rust machine-learning models to ONNX
Documentation
//! 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.

pub mod adapters;
pub mod canonical;
pub mod error;
pub mod exporters;
pub mod graph_builder;
pub mod proto;
#[cfg(feature = "validate")]
pub mod validate;

pub use error::{Error, Result};
pub use graph_builder::{save_to_file, to_bytes};

/// ONNX intermediate-representation version emitted by this crate.
pub const IR_VERSION: i64 = 8;
/// Default ONNX operator-set version emitted by this crate.
pub const OPSET_VERSION: i64 = 13;
/// ONNX-ML operator-set version used by tree exporters.
pub const ML_OPSET_VERSION: i64 = 3;