Skip to content
Novus Examples
onnx333 B

ONNX Inference Contract - Dynamic-Batch ReduceSum Model

A ReduceSum graph with a symbolic batch dimension and fixed feature width, for dynamic-shape import and batch-output tests. The matching JSON input and expected output make the model immediately usable in a CI inference assertion.

Graph preview — 1 operator nodeonnx
nodeoperatorinputsoutputs
sum_featuresReduceSumX, AxesY
ONNX opset 18 graph; inputs X; output Y.

Specifications

Opset
18
Ir Version
10
Nodes
1
Inputs
1
Outputs
1
Dynamic Batch
true
Model Sha256
bbc5e195dfea53d96d89d66e81e5730eeda30f076c24a2054734424b439948fa

Testing contract

Expected to pass
Scenario
Load the ONNX model with opset 18, bind tensors from dynamic-batch-reduce-input.json, and compare Y with the expected-output sidecar.
Expected result
Y must equal [6.0, 15.0] for the supplied two-row batch within absolute tolerance 1e-6.

What is a .onnx file?

ONNX (Open Neural Network Exchange) is a portable, protobuf-based graph format for machine-learning models. It records typed inputs and outputs, tensor initializers, operators, attributes, and an opset version so inference runtimes can exchange a model without sharing its training framework.

How to use this file

Load an example .onnx model in an ONNX-compatible runtime, feed it the JSON input from the same fixture group, and compare the resulting tensor with the published expected output. Check names, shapes, dtypes, opset, and tolerance as well as numeric values; each Novus model is validated with the ONNX checker and reference evaluator before publication.

How to use this file for testing

“ONNX Inference Contract - Dynamic-Batch ReduceSum Model” is a deterministic Novus Examples fixture for Model inference testing, Model evaluation, Conversion testing. Small, validated ONNX graphs paired with named JSON inputs and expected tensor outputs. Use them to test runtime loading, dtype and shape handling, broadcasting, dynamic batches, reduction behavior, and numeric tolerances without downloading a production-sized model.

Documented properties for this file: 1 nodes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

AI/ML fixtures are fully synthetic with documented schemas — no real people or data. Test data loaders, tokenizers, annotation converters, embedding/vector stores, or eval-metric parsers against the known structure and fixed seeds.

Generated by generation/p6_core.py. Free for any use, no attribution required — license.