-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Fix conv act int8 scale #38331
Fix conv act int8 scale #38331
Conversation
Thanks for your contribution! |
b729e9f
to
a3abf4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Aganlengzi Hi, could you please merge this PR? It fix conv int8 +activation accuracy bug issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry to inform you that 7c1441d's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
Related PR #38023 |
@baoachun Please review this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@baoachun hi could you please help merge this PR? |
PR types
Bug fixes
PR changes
OPs
Describe
Make
Scale_out
scale apply to output after activation if fused with activation. When no activation, pass the scale as usual to output_shift_scale.For conv we had:
act(Scale_out/scale_in_eltwiseresidual + Scale_out/(input_scaleweights_scale) * (a*w+b))
So we had to move Scale_out out of the act.
So we want to have:
Scale_outact(1/scale_in_eltwiseresidual + 1/(data_scaleweights_scale)(a*w+b))