Skip to content

Add "scalar" quantize kernels, and use them to implement convert assuming they exist.#9591

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_874865981
Feb 25, 2026
Merged

Add "scalar" quantize kernels, and use them to implement convert assuming they exist.#9591
copybara-service[bot] merged 1 commit intomasterfrom
test_874865981

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

Add "scalar" quantize kernels, and use them to implement convert assuming they exist.

This is a stepping stone towards removing the "params" design, which comes from XNNPACK. I think the params design is a headache and needs to go. This will unblock a number of improvements, such as computing the reciprocal of the scales as a separate op (or computing integer scaling parameters), which will allow lifting it out of the inner loops, even for ops like channelwise requantization.

…ming they exist.

This is a stepping stone towards removing the "params" design, which comes from XNNPACK. I think the params design is a headache and needs to go. This will unblock a number of improvements, such as computing the reciprocal of the scales as a separate op (or computing integer scaling parameters), which will allow lifting it out of the inner loops, even for ops like channelwise requantization.

PiperOrigin-RevId: 874898592
@copybara-service copybara-service bot merged commit 6425d79 into master Feb 25, 2026
@copybara-service copybara-service bot deleted the test_874865981 branch February 25, 2026 03:25
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