fix(shape): canonicalize host reshape provenance - #681
Draft
fhanuman wants to merge 1 commit into
Draft
Conversation
|
Thanks for opening a PR! This project follows LLVM's incremental-development and AI-tool-use Before requesting review, please check that:
Reviewers are assigned through |
L2 Accuracy Results (EP vs CPU)
Threshold: 0.01 | Run: 3891 - Commit: |
MorphiZen EP Performance Results
EPContext Export Performance
EPContext Import Performance
OGA Benchmark Results
OGA Wheel Smoke (Python benchmark_e2e.py)
Run: 3891 - Commit: |
fhanuman
force-pushed
the
pr/shape-stack-01b-reshape-provenance
branch
2 times, most recently
from
August 10, 2026 22:29
064ea8d to
b304218
Compare
fhanuman
force-pushed
the
pr/shape-stack-01b-reshape-provenance
branch
from
August 10, 2026 23:33
b304218 to
6801e55
Compare
Analyze generic ONNX shape SSA once per function so proven Reshape targets reuse canonical host dimensions instead of synchronized payload readbacks and fragmented pools. Preserve conservative fallback and harden allowzero, minus-one, index, and control-flow edge cases. Co-Authored-By: GPT-5.6 Sol <noreply@openai.com> Made-with: Cursor
fhanuman
force-pushed
the
pr/shape-stack-01b-reshape-provenance
branch
from
August 11, 2026 00:42
6801e55 to
1fb8b3e
Compare
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.
Summary
Canonicalize host-derived ONNX Reshape targets so descriptor dimensions remain host SSA instead of requiring synchronized payload readbacks.
allowzero,-1, index-width, CFG, and malformed-IR handling.Stack
This is PR 3 of 12 and depends on PR 2:
AI assistance
AI tools assisted with the shape-provenance implementation and stack reconstruction. The changes were checked with the authoritative local build, focused LIT, and a strict GPU-vs-CPU Reshape provenance test.
Made with Cursor