Expand description
ONNX spec-pinned constants.
ADR-060 removed the fixed-width two-level commitment
(ONNX_CANON_MAX_BYTES / ONNX_CANON_BYTES) and the
application-policy capacity profile (OnnxHostBounds /
OnnxAddrBounds) with its node-count / initializer-count /
attribute-count / IO-count / tensor-data ceilings. The realization now
emits the full flat canonical skeleton (the ModelProto structure
emitted inline, with variable-length leaves — tensor data, strings,
opaque sub-message payloads — replaced by their SHA-256 digests) as an
unbounded alloc buffer that flows through the pipeline as a borrowed
carrier. Every count and width is unbounded.
What remains are ONNX spec / policy constants (the admitted IR version range, the default-domain opset-version minimum) plus one native-stack-overflow guard on the recursive subgraph descent.
Constants§
- ONNX_
IR_ VERSION_ MAX - The highest ONNX IR version this realization admits —
onnx.proto’s currentVersion::IR_VERSION(= 13, 2026). The realization accepts anyir_versionin1..=ONNX_IR_VERSION_MAX: the canonical skeleton is IR-version-agnostic (the field numbers it reads are stable across IR revisions; IR-v10+NodeProto.overloadsimply reads empty on older models), and their_versionvalue itself is bound into the skeleton, so two IR revisions of the same logical model canonicalize distinctly. Admitting the range lets the realization content-address real-world models (published exports are predominantly IR 6–10) rather than only the latest revision. - ONNX_
OPSET_ VERSION_ MIN - Policy: the minimum opset version accepted for the default domain
"". ONNX mandates no minimum (= 1accepts any opset); raise per application policy. Inlined from the pre-ADR-060OnnxAddrBoundsprofile (ONNX_OPSET_VERSION_MIN = 1). - ONNX_
SUBGRAPH_ DEPTH_ MAX - Native-stack-overflow guard on the recursive subgraph descent
(
If/Loop/Scanbodies viaGRAPH/GRAPHSattributes). Guards the call stack against pathologically-nested subgraphs; it is not a ceiling on node / attribute count at any level.