Sample .onnx (ONNX) Test Files & Edge Cases
Deterministic ONNX (Open Neural Network Exchange) fixtures engineered for automated unit tests, parser fuzzing, and upload validation pipelines. Pull directly in GitHub Actions with immutable SHA-256 verification.
minimal-linear.onnx
Real ONNX ModelProto (ir_version=9, opset=21) verified by onnx.checker.check_model — MatMul + Relu.
curl -fsSL https://fileformat.co/fixtures/v1/onnx/minimal-linear.onnx -o minimal-linear.onnx \
&& echo "aa4e82d69b4579c1a7bfbf12228776f121238825abb64a45e937d4e1299a33fb minimal-linear.onnx" | shasum -a 256 -cmlp-classifier.onnx
onnx.helper-built MLP with float32 TensorProto initializers, Gelu activation — passes onnx.checker.
curl -fsSL https://fileformat.co/fixtures/v1/onnx/mlp-classifier.onnx -o mlp-classifier.onnx \
&& echo "bc52092748c786119aa203b36f61a706a5f40a426b9626ed0469552d9566ff4e mlp-classifier.onnx" | shasum -a 256 -ctruncated-protobuf.onnx
ModelProto wire frame truncated mid-GraphProto — ModelProto.ParseFromString must raise DecodeError.
curl -fsSL https://fileformat.co/fixtures/v1/onnx/truncated-protobuf.onnx -o truncated-protobuf.onnx \
&& echo "d4db86720670b6fb423cba89dae6fd0d3dc7a92624f836148e6fc29a590b06f4 truncated-protobuf.onnx" | shasum -a 256 -cIn-Browser Edge-Case & Malformed Fixture Mutator
Need negative test fixtures for parser fuzzing or upload gateway validation? Mutate minimal-linear.onnx directly in your browser without hosting unsafe payloads on public URLs.
Tests graceful EOF / footer corruption handling without process panic or OOM.