Skip to content

Added creation of QDQ for TopK node #25309

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Akupadhye
Copy link
Contributor

  • Added TopK in registry.py so as to create QDQ nodes for the op
  • Ensure that both the input and output quantization params are equal
  • Added unit test to verify the creation of QDQ nodes for TopK

Description:

Added support for creation of QDQ nodes for TopK when quantized with ORT static quantization tool

Motivation and Context:

Currently there is support to form a node unit for TopK operator when QDQ nodes are present and both the input and output quantization params are equal. But there was no support to create QDQ nodes for TopK operator in the ORT static quantization tool

- Added TopK in registry.py so as to create QDQ nodes for the op
- Ensure that both the input and output quantization params are equal
- Added unit test to verify the creation of QDQ nodes for TopK

Description:

Added support for creation of QDQ nodes for TopK when quantized with ORT
static quantization tool

Motivation and Context:

Currently there is support to form a node unit for TopK operator when
QDQ nodes are present and both the input and output quantization params
are equal. But there was no support to create QDQ nodes for TopK
operator in the ORT static quantization tool
@HectorSVC HectorSVC requested a review from Copilot July 7, 2025 17:18
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

1 participant