Skip to content

Shape inference + deterministic graph evaluation - #14

Merged
enthropy7 merged 3 commits into
enthropy7:mainfrom
Human9000-bit:opt-rework
Jul 10, 2026
Merged

Shape inference + deterministic graph evaluation#14
enthropy7 merged 3 commits into
enthropy7:mainfrom
Human9000-bit:opt-rework

Conversation

@Human9000-bit

@Human9000-bit Human9000-bit commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Some of the most obvious and straightforward method of onnx optimizer improvement is doing shape inference

But in order to deterministically measure impact of new optimizations, I think we need a some sort of model graph evaluation.
But graph evaluation could pretty much use shape inference. I am submitting 'em in a singular PR due to this.

The idea is some part of runtime executor can make better decisions with known shapes.

@Human9000-bit

Copy link
Copy Markdown
Collaborator Author

(if CI passes)
I think we can merge this PR as-is, as graph cost eval is mostly done. After merge, I can make another PR where I actually plug shape inference into the model loader itself

@Human9000-bit
Human9000-bit marked this pull request as ready for review July 10, 2026 15:32
@Human9000-bit
Human9000-bit requested a review from enthropy7 July 10, 2026 15:32
@enthropy7
enthropy7 merged commit dde924d into enthropy7:main Jul 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants