Skip to main content

Module text

Module text 

Source
Expand description

Textual representation of ONNX models (ONNX_RS §5).

Implements both directions of the readable format: to_text renders an owned model and from_text reconstructs one. Weight and tensor payloads are intentionally represented by typed references/placeholders rather than embedding binary data.

Structs§

PrintOptions
Options controlling textual output (ONNX_RS §5.4 PrintOptions).

Functions§

from_text
Parse a model rendered by crate::text::to_text.
to_text
Print model as text using default PrintOptions.
to_text_with
Print model as text with explicit options.