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

#shlo_ref Rework quantized tensor element types. #65134

Merged
merged 1 commit into from Apr 6, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Apr 5, 2024

#shlo_ref Rework quantized tensor element types.

This separates the implementation of per-tensor and per-axis quantization
types. The goal is to allow value parametrized tests without having to use
templating mechanisms to create the values. This will also make the user
dispatching code much more concise.

  • Information duplication is reduced in the quantized type structures (only the variants).
  • The code is better decoupled.
  • Per-tensor does not need to get the per axis 0th element for scales and zero points.

This separates the implementation of per-tensor and per-axis quantization
types. The goal is to allow value parametrized tests without having to use
templating mechanisms to create the values. This will also make the user
dispatching code much more concise.

- Information duplication is reduced in the quantized type structures (only the variants).
- The code is better decoupled.
- Per-tensor does not need to get the per axis 0th element for scales and zero points.

PiperOrigin-RevId: 622429656
@copybara-service copybara-service bot merged commit 522e500 into master Apr 6, 2024
@copybara-service copybara-service bot deleted the exported_pr_619572732 branch April 6, 2024 12:36
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.

None yet

1 participant