[AIMIGRAPHX-1003] Add warnings for dim and value not set#4850
Open
eddieliao wants to merge 8 commits into
Open
[AIMIGRAPHX-1003] Add warnings for dim and value not set#4850eddieliao wants to merge 8 commits into
eddieliao wants to merge 8 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds user-facing warnings to improve usability when ONNX model inputs have unresolved symbolic dimensions or when the driver runs with inputs that were not explicitly provided.
Changes:
- Emit a warning during ONNX parsing when symbolic dimension parameters are unbound (excluding “batch” dims).
- Emit a warning in the driver when program inputs are not explicitly set via fill/load options.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/onnx/onnx_parser.cpp |
Adds a pre-parse warning for unbound symbolic dimension parameters in graph inputs. |
src/driver/main.cpp |
Adds a warning when running with inputs that are not explicitly populated (fill/load). |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4850 +/- ##
===========================================
+ Coverage 92.66% 92.73% +0.07%
===========================================
Files 588 588
Lines 30412 30439 +27
===========================================
+ Hits 28180 28226 +46
+ Misses 2232 2213 -19
🚀 New features to boost your workflow:
|
pfultz2
reviewed
May 7, 2026
pfultz2
reviewed
May 7, 2026
pfultz2
reviewed
May 7, 2026
Regressions detected 🔴 * No develop baseline was found for this PR's branch point; compared against the latest available develop run instead. |
|
kahmed10
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Warn the user when input dimensions or input values are not set, with the goal to improve usability.
Technical Details
Batch size is excluded from the warnings as it is common in most models and the default value of 1 typically works.
Changelog Category
Add a
CHANGELOG.mdentry for any option other thanNot Applicable