Skip to content

Symbolic shape inferer #291

@justinchuby

Description

@justinchuby

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions