Skip to content

QLinear saturate last #96

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

Merged
merged 2 commits into from
Jun 4, 2024
Merged

Conversation

josel-amd
Copy link
Collaborator

Converting the IR from doing

y = saturate((x / y_scale)) + y_zero_point

to do

y = saturate((x / y_scale) + y_zero_point)

as stated in the doc

@mgehre-amd
Copy link
Collaborator

While you are at it, do you also want to fix the DeQuantizeLiner to do the zero-point substraction in float instead of int?

Copy link

@cferry-AMD cferry-AMD left a comment

Choose a reason for hiding this comment

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

Thanks! That makes total sense :)

@josel-amd josel-amd merged commit 0d88624 into feature/onnx-to-tosa Jun 4, 2024
5 checks passed
@josel-amd josel-amd deleted the jose.fix_saturation branch June 4, 2024 07:22
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.

3 participants