[AIMIGRAPHX-1003] Add warnings for dim and value not set#4850
Merged
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❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4850 +/- ##
===========================================
- Coverage 92.66% 92.61% -0.05%
===========================================
Files 588 587 -1
Lines 30412 30410 -2
===========================================
- Hits 28180 28164 -16
- Misses 2232 2246 +14
🚀 New features to boost your workflow:
|
pfultz2
reviewed
May 7, 2026
pfultz2
reviewed
May 7, 2026
pfultz2
reviewed
May 7, 2026
Regressions detected 🔴 |
|
kahmed10
approved these changes
May 29, 2026
ahsan-ca
approved these changes
Jun 2, 2026
Contributor
|
Nit: Changelog category needs to be selected. |
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