-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Enable free dimension override for graph optimization level 0 #25425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable free dimension override for graph optimization level 0 #25425
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
The PR enables free dimension override at graph optimization level 0 by extending the transformer registration loop and adding a Default
case in the transformer generator.
- Iterate transformers from
Default
throughMaxLevel
inAddPredefinedTransformers
- Introduce special handling to apply free dimension overrides at optimization level 0
- Add a
case TransformerLevel::Default
branch inGenerateTransformers
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
core/session/inference_session.cc | Expand transformer loop to include Default and register override even at level 0 |
core/optimizer/graph_transformer_utils.cc | Add Default case to push FreeDimensionOverrideTransformer |
Comments suppressed due to low confidence (1)
onnxruntime/core/optimizer/graph_transformer_utils.cc:223
- Add or update unit tests to verify that free dimension overrides are applied when the optimization level is
Default
.
case TransformerLevel::Default: {
Can we add a unit test to validate? There should already be free dimension override tests that we can leverage. |
unit tests added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there! We haven't cut the release branch for this version yet, so I'm removing the |
…oft#25425) Enable free dimension override even when the graph optimization level is 0. If the optimization level is above 0, the override will be applied during level 1 optimization.
…oft#25425) Enable free dimension override even when the graph optimization level is 0. If the optimization level is above 0, the override will be applied during level 1 optimization.
Enable free dimension override even when the graph optimization level is 0.
If the optimization level is above 0, the override will be applied during level 1 optimization.