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

Fuse tfl.Quantize(lq.Dequantize(x)) -> lq.Dequantize(x) #644

Merged
merged 1 commit into from
May 20, 2021

Conversation

lgeiger
Copy link
Member

@lgeiger lgeiger commented May 20, 2021

What do these changes do?

lq.Dequantize supports int8 output, so we can fuse tfl.Quantize(lq.Dequantize(x)) -> lq.Dequantize(x) to remove an unnecessary tfl.Quantize op.

How Has This Been Tested?

Added a MLIR filecheck test.

Related issue number

I think this will be required to eventually make the unittests of #611 pass. /cc @simonmaurer

@lgeiger lgeiger added the feature New feature or request label May 20, 2021
@lgeiger lgeiger requested a review from a team May 20, 2021 10:23
Copy link
Contributor

@AdamHillier AdamHillier left a comment

Choose a reason for hiding this comment

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

🚀

@lgeiger lgeiger enabled auto-merge (squash) May 20, 2021 10:28
@lgeiger lgeiger merged commit 2897394 into main May 20, 2021
@lgeiger lgeiger deleted the merge-lce-quantize-dequant branch May 20, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants