I created https://github.com/justinchuby/onnx-shape-inference with good data propagation. Combined with microsoft/onnxscript#2807 we are able to fully optimize this model which has a bunch of redundant shape ops https://huggingface.co/justinchuby/BirdNET-onnx/blob/main/model.onnx.
I tested with onnxslim and it seems some shapes can be better inferred. I wonder if there is interest in adopting the shape inference project?
Rightly I am hosting it as a personal project, not as part of onnx-ir because it is too large to be properly reviewed (code I guided AI to create).
I created https://github.com/justinchuby/onnx-shape-inference with good data propagation. Combined with microsoft/onnxscript#2807 we are able to fully optimize this model which has a bunch of redundant shape ops https://huggingface.co/justinchuby/BirdNET-onnx/blob/main/model.onnx.
I tested with onnxslim and it seems some shapes can be better inferred. I wonder if there is interest in adopting the shape inference project?
Rightly I am hosting it as a personal project, not as part of onnx-ir because it is too large to be properly reviewed (code I guided AI to create).