[CUDA] QuantizeLinear and DequantizeLinear opset 25#28046
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the CUDA Execution Provider’s support for ONNX QuantizeLinear/DequantizeLinear opset 25 by adding the appropriate kernel registrations for opset 25 (and aligning registrations across opsets 21–24), plus targeted CUDA-only tests and regenerated operator kernel documentation.
Changes:
- Register CUDA kernels for QuantizeLinear/DequantizeLinear across opsets 21–22, 23–24, and 25+ with the correct type-constraint sets.
- Add CUDA-only opset 25 unit tests for QuantizeLinear and DequantizeLinear (including per-axis and blocked int4/uint4 cases).
- Update
docs/OperatorKernels.mdto reflect opset 25+ signatures/type constraints (auto-generated output update).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| onnxruntime/test/providers/cpu/tensor/quantize_linear_test.cc | Adds CUDA-only opset 25 Q/DQ tests and a helper to run without CPU fallback. |
| onnxruntime/core/providers/cuda/tensor/quantize_linear.cc | Adds/adjusts CUDA kernel registrations for opsets 21–22, 23–24, and 25+. |
| onnxruntime/core/providers/cuda/cuda_execution_provider.cc | Updates CUDA kernel class declarations/registry entries to include opset 25 Q/DQ and align versioned registrations. |
| docs/OperatorKernels.md | Regenerated kernel doc entries reflecting opset 25+ for Q/DQ. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
kunal-vaishnavi
approved these changes
Apr 14, 2026
This was referenced May 8, 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.
No description provided.