Conversation
ziereis
added this pull request to stack #24903
September 11, 2026 06:50
ziereis
force-pushed
the
users/ziereis/qdq-torch-conversion
branch
from
September 11, 2026 07:24
009c66d to
38febbf
Compare
ziereis
force-pushed
the
users/ziereis/qdq-torch-conversion
branch
from
September 11, 2026 07:27
38febbf to
6ca5cd6
Compare
Update to current upstream torch-mlir through e447c3fa, using the IREE integration revision adapted to the current LLVM pin. Signed-off-by: Thomas Ziereis <ziereis@roofline.ai>
Convert the typed PT2E per-tensor and per-channel quantize and dequantize operations before Torch-to-Linalg expands them. This keeps affine parameter maps, ranges, and signedness available to later QDQ optimizations. Leave operations with dynamic or incompatible metadata for the existing torch-mlir lowering. Signed-off-by: Thomas Ziereis <ziereis@roofline.ai>
Manewing
force-pushed
the
users/ziereis/qdq-torch-conversion
branch
from
September 15, 2026 08:38
6ca5cd6 to
4fd9b48
Compare
This branch has not been deployed
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.
Preserves PT2E quantization during Torch input conversion as
iree_linalg_ext.quantize_affineandiree_linalg_ext.dequantize_affineoperations. This retains the affineparameters needed by the propagation and integer-contraction rewrites instead
of expanding quantization into scalar arithmetic during Torch-to-Linalg
lowering.
The conversion handles the typed per-tensor and per-channel PT2E quantize and
dequantize operations. It carries constant quantization bounds, storage
signedness, optional zero points, and scalar or channel parameter maps into the
LinalgExt representation. Operations with dynamic bounds, dynamic axes, or
incompatible tensor metadata remain available to the general torch-mlir
lowering.
Builds on the QDQ propagation in #24906
and requires the typed PT2E operations supplied by the torch-mlir update in
#24908. Until #24908 lands, its
one-line submodule update also appears in this stacked diff. This completes the
Torch import portion of Linalg(_ext) native QDQ #24862.
Stack created with GitHub Stacks CLI • Give Feedback 💬