Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CPU EP] Add blocked quantization to DequantizeLinear op kernel #20901

Merged
merged 18 commits into from
Jun 4, 2024

Conversation

fajin-corp
Copy link
Contributor

@fajin-corp fajin-corp commented Jun 3, 2024

Description

Added blocked quantization to DequantizeLinear op kernel. All existing input types and output types are supported. All axes are supported.

The implementation in the PR is naive - single thread and scalar instructions. Multi-threading and vector instructions are planned in the future based on the needs.

Motivation and Context

onnx introduced blocked quantization in opset 21 for DequantizeLinear. This PR adds the spec support in onnx runtime.

@fajin-corp fajin-corp requested a review from a team as a code owner June 3, 2024 04:02
yufenglee
yufenglee previously approved these changes Jun 4, 2024
Copy link
Member

@yufenglee yufenglee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Member

@yufenglee yufenglee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@fajin-corp fajin-corp merged commit 3ecb012 into main Jun 4, 2024
96 checks passed
@fajin-corp fajin-corp deleted the fajin/dqblockquant- branch June 4, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants