ONNX shape_inference wrong-shape drift via duplicate local functions
This repository contains a minimal .onnx proof of concept showing that a checker-approved model with duplicate local-function ids can produce a silent wrong output shape contract.
Files
shape_drift_scan.onnx: minimal PoCgenerate_poc.py: regenerates the PoCreproduce.py: reproduces the mismatch acrosschecker,shape_inference, andReferenceEvaluator
Reproduction
python generate_poc.py
python reproduce.py
Expected highlights
checker okshape_inferencereports output shape[2, 2]- runtime produces output shape
[2, 1]