skip elimination when reshape_lazy - #5104
Draft
weizhu12-amd wants to merge 1 commit into
Draft
Conversation
Check flagged results 🔆 * No develop baseline was found for this PR's branch point; compared against the latest available develop run instead. |
|
Collaborator
|
Do you have the test case to verify this and the original model for us to look at? Where is that located? Feel free to reach out on teams |
Concat elimination replaces an input's buffer with a non-packed slice of the super-buffer. reshape_lazy can only alias a packed input, so if the input feeds a reshape_lazy the elimination is illegal; force a copy instead.
weizhu12-amd
force-pushed
the
eliminate-concat-reshape-lazy
branch
from
August 3, 2026 05:04
57ad672 to
9f88e48
Compare
Collaborator
Author
|
Please download the YOLOv3 ONNX model from: https://github.com/onnx/models/raw/main/validated/vision/object_detection_segmentation/yolov3/model/yolov3-12.onnx, The model runs successfully in my local environment with PRs #5103 and #5104 applied. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5104 +/- ##
========================================
Coverage 93.26% 93.26%
========================================
Files 623 623
Lines 32969 33007 +38
========================================
+ Hits 30747 30783 +36
- Misses 2222 2224 +2
🚀 New features to boost your workflow:
|
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
Prevent concat elimination by introducing a special operations checks. This issue caused YOLOv3 compilation to fail with: reshape_lazy on axis that is not packed
Technical Details
Concat elimination replaces an input's buffer with a non-packed slice of the super-buffer. reshape_lazy can only alias a packed input, so if the input feeds a reshape_lazy the elimination is illegal; force a copy instead.
Changelog Category
Add a
CHANGELOG.mdentry for any option other thanNot ApplicableFollow the LLVM AI Tool Use Policy for contributions using AI.